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-3385 Overview
CVE-2025-3385 is a cross-site scripting (XSS) vulnerability in LinZhaoguan pb-cms version 2.0. The flaw resides in the Classification Management Page, where the Classification name parameter is not properly sanitized before being rendered. An authenticated attacker can inject arbitrary JavaScript that executes in the browser of any user who views the affected page. The vulnerability is remotely exploitable over the network and has been publicly disclosed, increasing the likelihood of opportunistic abuse. The weakness is tracked as CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Successful exploitation allows attackers to execute arbitrary JavaScript in victim browsers, enabling session hijacking, credential theft, and unauthorized actions within the pb-cms administrative interface.
Affected Products
- LinZhaoguan pb-cms 2.0
- Classification Management Page component
- Deployments exposing the administrative interface to untrusted users
Discovery Timeline
- 2025-04-07 - CVE-2025-3385 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-3385
Vulnerability Analysis
The vulnerability is a stored cross-site scripting flaw located in the Classification Management Page of pb-cms 2.0. The application accepts user-supplied input through the Classification name parameter without applying output encoding or input filtering. When the classification is later rendered within the administrative interface, the injected payload executes in the context of the viewing user's browser.
Because the payload persists in the application's data store, every subsequent visitor to the affected page triggers the script. This is a persistent XSS pattern, which carries higher impact than reflected variants. The attack requires an authenticated session with privileges to create or modify classifications, and some user interaction is needed for the payload to fire.
The public disclosure of the exploit details lowers the barrier to abuse. The EPSS probability stands at 0.338%, placing the issue in the 25th percentile of likely-exploited vulnerabilities.
Root Cause
The root cause is missing input validation and output encoding on the Classification name field. The application concatenates untrusted input directly into HTML output rendered by the browser. No contextual escaping is applied before the value reaches the Document Object Model (DOM), which allows HTML and JavaScript syntax to be interpreted rather than displayed as text.
Attack Vector
An authenticated attacker navigates to the Classification Management Page and submits a crafted classification name containing JavaScript. The payload is stored in the backend database. When an administrator or other user loads a page that renders the classification list, the browser parses and executes the injected script. The attacker can steal session cookies, perform actions on behalf of the victim, or pivot into further administrative abuse.
Technical details and proof-of-concept information are published on the Gitee issue tracker and the VulDB entry for pb-cms CVE-2025-3385.
Detection Methods for CVE-2025-3385
Indicators of Compromise
- Classification records containing HTML tags such as <script>, <img>, <svg>, or event handlers like onerror= and onload=
- Outbound HTTP requests from administrator browsers to attacker-controlled domains shortly after loading the Classification Management Page
- Unexpected administrative actions originating from legitimate user sessions, suggesting session or cookie theft
Detection Strategies
- Inspect database entries in the classifications table for payloads containing script-like syntax, encoded characters (&#x), or JavaScript URI schemes
- Deploy web application firewall (WAF) rules that flag XSS payloads submitted to pb-cms management endpoints
- Correlate HTTP POST requests modifying classifications with subsequent anomalous DOM-based network traffic from administrative users
Monitoring Recommendations
- Enable application-level audit logging for all create and update operations against classification records
- Monitor browser Content Security Policy (CSP) violation reports if CSP headers are deployed
- Alert on administrative sessions generating unexpected cross-origin requests after visiting the Classification Management Page
How to Mitigate CVE-2025-3385
Immediate Actions Required
- Restrict access to the Classification Management Page to trusted administrators until a fix is applied
- Audit existing classification records and purge any entries containing HTML or JavaScript syntax
- Rotate administrative session tokens and credentials if evidence of exploitation is found
- Place pb-cms 2.0 instances behind a WAF configured to block common XSS payloads
Patch Information
No vendor patch is referenced in the NVD entry at the time of publication. Monitor the pb-cms Gitee repository for upstream fixes and apply them promptly upon release. Until a patch is available, treat all deployments of pb-cms 2.0 as vulnerable.
Workarounds
- Apply server-side input validation that rejects HTML special characters in the Classification name field
- Implement contextual output encoding on all fields rendered within the Classification Management Page
- Deploy a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Limit administrative account privileges so that only vetted users can create or modify classifications
# Example Content Security Policy header to mitigate XSS execution
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'
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

