CVE-2024-27285 json
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
published 2024-02-28 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-0579 , GHSA-8mq4-9jjh-9xrc
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems yard 0.9.36
- yardoc yard 0.9.36
- yard Debian 12 0.9.28-2+deb12u2
- yard Debian 14, Debian 13 0.9.36-1
debian advisories DEBIAN-CVE-2024-27285
- yard Ubuntu 20.04 LTS 0.9.24-1+deb11u1build0.20.04.1
- yard Ubuntu 22.04 LTS 0.9.26-1ubuntu0.1
- yard Ubuntu Pro 16.04 LTS 0.8.7.6+git20160220-3ubuntu0.1~esm1
- yard Ubuntu Pro 18.04 LTS 0.9.12-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-27285
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/lsegal/yard@1fcb2d8 commit
- github.com/lsegal/yard@2069e2b commit
- github.com/lsegal/yard#1538 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-27285 updated cvss 5.4
yard: Cross-site scripting in the frams.erb template file
-
Red Hat Satellite 6 foreman-installer, foreman-installer-katelloaffected: no fix available
-
Red Hat OpenStack Platform 16.1 puppet-dns Red Hat OpenStack Platform 16.2 puppet-dnsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.06% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | yard | <0.9.36 |
0.9.36 |
Affected products
- lsegal yard
- yardoc yard
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/lsegal/yard/pull/1538
web, issue-tracking, patch
-
github.com
/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa
web, patch
-
github.com
/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be
web, patch
-
github.com
/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc
web, exploit, vendor-advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml
web, exploit, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2024/03/msg00006.html
web, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2024-27285
advisory
-
github.com
/advisories/GHSA-8mq4-9jjh-9xrc
advisory
-
github.com
/lsegal/yard
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA
web
Sources
- CVE List CVE-2024-27285
- GitHub Advisory GHSA-8mq4-9jjh-9xrc
- NVD CVE-2024-27285
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.