Reflected XSS via unescaped stylesheet parameters
Published Mar 9, 2025 · Updated Mar 10, 2025
Cross-site scripting in GeSHi 1.0.9.1 and earlier allows remote attackers to inject script through CSS generator parameters. The contrib/cssgen.php get_var function returns request values that are concatenated directly into generated stylesheet rules without HTML escaping or sanitization. Exploitation requires the contrib script to be web-accessible and a user to view the crafted response, executing the injected script in that browser.
Summary
What happened
Cross-site scripting in GeSHi 1.0.9.1 and earlier allows remote attackers to inject script through CSS generator parameters. The contrib/cssgen.php get_var function returns request values that are concatenated directly into generated stylesheet rules without HTML escaping or sanitization. Exploitation requires the contrib script to be web-accessible and a user to view the crafted response, executing the injected script in that browser.
The record
- CVE
- CVE-2025-2123
- Published
- Mar 9, 2025
- Updated
- Mar 10, 2025
- Vendor
- QBNZ
- Product
- GeSHi
- Classifications
- CWE-79, CWE-94, T1189
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Mar 9, 2025CVE publishedPublication date reported by the CVE source.
- Mar 10, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.0.9.0
- Affected versionversion=1.0.9.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GitHub issue 159 proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo