The "frames.html" file within the Yard Doc's generated documentation is vulnerable to Cross-Site Scripting (XSS)
Affects yardSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium · fixed in 0.8.7.6+git20160220-3ubuntu0.1~esm1 : update yard when convenient.
Data as of 24 Nov 2026, 19:26 UTC
- Patch
- Available – fixed in 0.8.7.6+git20160220-3ubuntu0.1~esm1, 0.9.12-2ubuntu0.1~esm1, 0.9.24-1+deb11u1build0.20.04.1 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSyardpkg:deb/ubuntu/yard?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSyardpkg:deb/ubuntu/yard?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSyardpkg:deb/ubuntu/yard?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSyardpkg:deb/ubuntu/yard?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-27285 (opens in a new tab)
- github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc (opens in a new tab)
- github.com/lsegal/yard/commit/d78fc393d603c4fc35975969296ed381146a29d4 (opens in a new tab)
- github.com/lsegal/yard/commit/c88406e4b78f8dd4ba38c79eea0bcec716dbbef8 (opens in a new tab)
- github.com/lsegal/yard/commit/2a0b9990b64ceeeb0456177c593e36e204a06df1 (opens in a new tab)
- github.com/lsegal/yard/commit/a831a596b2a7cabdd2e17855dd179af2ebf3d559 (opens in a new tab)
- github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-27285 (opens in a new tab)
- ubuntu.com/security/notices/USN-6731-1 (opens in a new tab)