CVE-2024-27285
MEDIUM 6.1CVSS 3.1YARD's default template vulnerable to Cross-site Scripting in generated frames.html
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.
- Published
- 28 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-8mq4-9jjh-9xrc
- Sources
- NVDJSONOSV GHSA-8mq4-9jjh-9xrcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yardoc | yardcpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:* |
< 0.9.36 | 0.9.36 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | yard | < 0.9.36 | 0.9.36 |
References
- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa · Patch, WEB
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be · Patch, WEB
- https://github.com/lsegal/yard/pull/1538 · Issue Tracking, Patch, WEB
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc · Exploit, Vendor Advisory, WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/ · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27285 · ADVISORY
- https://github.com/advisories/GHSA-8mq4-9jjh-9xrc · ADVISORY
- https://github.com/lsegal/yard · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 28 Feb 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Feb 2024)