Medium severity · published Feb 28, 2024
CVE-2024-27285
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
6.1
CVSS
1.1%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 64% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
YA
yard · lsegal
< 0.9.36 · source: vendor, NVD, CISA
DL
Debian Linux · Debian
10.0 · source: NVD
FE
Fedora · Fedoraproject
38 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-27285
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-27285
Patch
https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa
Patch
https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be
Issue Tracking
https://github.com/lsegal/yard/pull/1538
Exploit
https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc
Exploit
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml
Mailing List
https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html
More from yard
7.5
CVE-2026-41493
yard: Possible arbitrary path traversal and file access via yard server
5.3
CVE-2026-49342
YARD static cache reads raw traversal paths before router sanitization
