XSS in Lsegal Yard
CVE-2024-27285
YARD is a Ruby Documentation tool. The "frames.html" file within the Yard Doc's generated documentation is vulnerable to Cross-Site Scripting (XSS) attacks due to inadequate sanitization of user input within the JavaScript segment of the "frames.erb" template file. This vulnerability is fixed in 0.9.36.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.011, 65.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Lsegal Yard — versions < 0.9.36
- Yardoc Yard
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 38
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, NaInSec/CVE-LIST). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc (Exploit, Vendor Advisory)
- https://github.com/lsegal/yard/pull/1538 (Patch, Issue Tracking)
- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa (Patch)
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be (Patch)
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml (Exploit, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/03/msg00006.html (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)