CVE-2024-27285
published medium CVSS 3.1 · 5.4YARD's default template vulnerable to Cross-site Scripting in generated frames.html
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lsegal | — | yard< 0.9.36 | Affected | Not stated | GitHub_M |
| yardoc | — | yard0.9.36 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bookworm | yard | Advisory build | 0.9.28-2+deb12u2 | DSA-5635-1 |
| Ubuntu | bionic | yard | Advisory build | 0.9.12-2ubuntu0.1~esm1 | USN-6731-1 |
| Debian | bullseye | yard | Advisory build | 0.9.24-1+deb11u1 | DSA-5635-1 |
| Debian | buster | yard | Advisory build | 0.9.16-1+deb10u1 | DLA-3753-1 |
| Ubuntu | focal | yard | Advisory build | 0.9.24-1+deb11u1build0.20.04.1 | USN-6731-1 |
| Ubuntu | jammy | yard | Advisory build | 0.9.26-1ubuntu0.1 | USN-6731-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | xenial | yard | Advisory build | 0.8.7.6+git20160220-3ubuntu0.1~esm1 | USN-6731-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lsegal | yard | < 0.9.36 (affected) | GitHub_M · cna |
| yardoc | yard | 0.9.36 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
7- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be
- https://github.com/lsegal/yard/pull/1538
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml
- https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/
Provider assertions
3GitHub_M · cna
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0d5bdd29512c2dd9749a4b003a7dff95c05c08ee5ca756941dfb7f11b31da471
- Ingested
- 23 Sep 2026, 08:20:47 UTC
- Source record
- Official CVE record