CVE-2024-27285
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
Reported by github_m · Published February 28, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| yard | yardoc | 0.9.36 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lsegal | yard | < 0.9.36 |
| RubyGems | yard | 0 |
| yardoc | yard | 0.9.36 |
| lsegal | yard | 0 |
Timeline
- Feb 28, 2024 CVE Published
- Feb 28, 2024 PoC Published (3 in total, the first dated here)
- Feb 29, 2024 EPSS Score (30 in total, the first dated here)
- Feb 29, 2024 Fix PR Merged
- Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
- Jan 15, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27285
vulnetix vdb fixes CVE-2024-27285
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27285/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc x_refsource_CONFIRM
- https://github.com/lsegal/yard/pull/1538 x_refsource_MISC
- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa x_refsource_MISC
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-27285 advisory
- https://github.com/advisories/GHSA-8mq4-9jjh-9xrc advisory
- https://github.com/lsegal/yard url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA url