# CVE-2025-2123: GeSHi CSS cssgen.php get_var cross site scripting

- Severity: Medium 5.1 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2025-03-09T15:00:12.269Z
- Modified: 2026-06-17T09:06:22.393Z
- Also known as: GHSA-pr6q-g5gv-qgr7
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability, which was classified as problematic, has been found in GeSHi up to 1.0.9.1. Affected by this issue is the function get_var of the file /contrib/cssgen.php of the component CSS Handler. The manipulation of the argument default-styles/keywords-1/keywords-2/keywords-3/keywords-4/comments leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

(As written by CVE List.)

## Affected

- GeSHi: 1.0.9.0; 1.0.9.1
- geshi/geshi (Packagist): up to 1.0.9.1
- qbnz geshi: up to 1.0.9.1

## Every score

- VulDB: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- VulDB: CVSS:3.0 3.5 Low `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- VulDB: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- GitHub: CVSS:3.1 3.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://vuldb.com/?submit.507418> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/GeSHi/geshi-1.0/issues/159> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/GeSHi/geshi-1.0/issues/159#issue-2880408694> (exploit, issue-tracking, third-party-advisory)
- <https://vuldb.com/?id.299036> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.299036> (permissions-required, signature, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2123> (advisory)
- <https://github.com/GeSHi/geshi-1.0> (package)

## Sources

- CVE List: [CVE-2025-2123](https://www.cve.org/CVERecord?id=CVE-2025-2123), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-pr6q-g5gv-qgr7](https://github.com/advisories/GHSA-pr6q-g5gv-qgr7), CC-BY-4.0, modified 2025-06-23
- NVD: [CVE-2025-2123](https://nvd.nist.gov/vuln/detail/CVE-2025-2123), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-2123 · Whole record: https://cve.day/CVE-2025-2123.json · Rebuilt by cve.day 2026-11-25T22:58:55.070Z
