Skip to main content
Vulnerability Database/CVE-2025-57768

CVE-2025-57768: Phproject Stored XSS Vulnerability

CVE-2025-57768 is a stored cross-site scripting flaw in Phproject's Planned Hours field that allows attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-57768 Overview

CVE-2025-57768 is a Stored Cross-Site Scripting (XSS) vulnerability in Phproject, a full-featured project management system. The flaw affects versions from 1.8.0 up to but not including 1.8.3. The planned_hours parameter in the project creation endpoint accepts user input and reflects it into the HTML response without encoding or sanitization. Attackers can submit a POST request to /issues/new/ containing a script payload in the Planned Hours field. The server includes the raw value in the rendered page, and the browser executes the injected script. The issue is tracked under [CWE-79] and is fixed in Phproject 1.8.3.

Critical Impact

Authenticated users can inject arbitrary JavaScript that executes in the browsers of other users viewing the affected project pages, enabling session theft, credential harvesting, and unauthorized actions in the application context.

Affected Products

  • Phproject versions 1.8.0 through 1.8.2
  • Alanaktion Phproject project management platform
  • Fixed in Phproject 1.8.3

Discovery Timeline

  • 2025-08-21 - CVE-2025-57768 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-57768

Vulnerability Analysis

The vulnerability is a Stored Cross-Site Scripting flaw in the Phproject issue and project creation workflow. When a user submits the new-issue form, the application forwards the planned_hours parameter to the server-side template renderer. The renderer places the value directly into the HTML output of the project creation page. Because Phproject omits HTML entity encoding on this field, script tags supplied by the attacker are treated as executable markup. Any user who subsequently loads the rendered page triggers the injected code in their browser session. The impact scope depends on the privileges of the victim account and the sensitivity of data accessible through the Phproject session.

Root Cause

The root cause is missing output encoding on the planned_hours field within the /issues/new/ response template. Phproject validates the parameter as text but does not apply context-aware escaping before insertion into HTML. This violates the CWE-79 control expectation that all untrusted input reflected into HTML must be encoded per output context.

Attack Vector

Exploitation requires network access to the Phproject application and the ability to submit the new-issue form. An attacker crafts a POST request to /issues/new/ and places a JavaScript payload such as <script>alert(1)</script> in the planned_hours parameter. The server reflects the payload into the project creation page, and any user rendering the resulting HTML executes the attacker-controlled code. No user interaction beyond visiting the affected page is required after injection.

No verified public proof-of-concept code is available. See the GitHub Security Advisory for reference details.

Detection Methods for CVE-2025-57768

Indicators of Compromise

  • HTTP POST requests to /issues/new/ containing HTML or JavaScript syntax such as <script>, onerror=, or javascript: within the planned_hours parameter.
  • Phproject application logs recording new issues where non-numeric characters or angle brackets appear in the Planned Hours field.
  • Outbound browser requests from Phproject users to unfamiliar domains shortly after loading a project creation or issue page.

Detection Strategies

  • Inspect web server and application logs for /issues/new/ POST bodies containing angle brackets, event handlers, or encoded script markers in the planned_hours value.
  • Deploy a Web Application Firewall (WAF) rule matching XSS signatures on the planned_hours form field.
  • Compare stored issue records against an expected numeric schema for Planned Hours and flag rows with alphabetical or symbol characters.

Monitoring Recommendations

  • Enable Content Security Policy (CSP) violation reporting to capture script execution attempts from unexpected sources.
  • Monitor authenticated session tokens for anomalous reuse across IP addresses following Phproject page loads.
  • Alert on new administrative actions performed in Phproject shortly after a user opens a page containing recently created issues.

How to Mitigate CVE-2025-57768

Immediate Actions Required

  • Upgrade all Phproject instances to version 1.8.3 or later, which contains the fix for the planned_hours reflection issue.
  • Audit existing project and issue records for stored payloads containing HTML markup in the Planned Hours field and remove any that are found.
  • Rotate session cookies and API tokens for any accounts that accessed Phproject during the exposure window.

Patch Information

The maintainer released Phproject 1.8.3 with encoding applied to the Planned Hours field. Details are published in the GitHub Security Advisory GHSA-mhhg-qx37-g369. Administrators should apply the upgrade following the project's standard deployment procedure and verify the running version after restart.

Workarounds

  • Restrict access to the Phproject /issues/new/ endpoint using network controls or authentication proxies until the upgrade is completed.
  • Deploy a WAF rule that rejects requests where the planned_hours parameter contains characters outside a numeric or decimal pattern.
  • Enforce a strict Content Security Policy that blocks inline script execution on Phproject pages to reduce payload impact.
bash
# Example WAF rule to reject non-numeric planned_hours values (ModSecurity syntax)
SecRule ARGS:planned_hours "!@rx ^[0-9]+(\.[0-9]+)?$" \
  "id:1057768,phase:2,deny,status:400,msg:'Phproject CVE-2025-57768 - invalid planned_hours'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.