CVE-2024-27285 — Vulnerability in yard — CVE Details
YARD's default template vulnerable to Cross-site Scripting in generated frames.html
Summary
Advisory Timeline
- First published February 28, 2024 (957 days ago).
- Last revised September 10, 2026 — 924 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install yard -v 0.9.36
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| yard | rubygems | 0.2.0, 0.2.1, 0.2.2, 0.2.3 (+86 more) | 0.9.36 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27285ADVISORY
- https://github.com/lsegal/yard/pull/1538WEB
- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aaWEB
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054beWEB
- https://github.com/advisories/GHSA-8mq4-9jjh-9xrcADVISORY
- https://github.com/lsegal/yardPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.ymlWEB
- https://lists.debian.org/debian-lts-announce/2024/03/msg00006.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGAWEB
Frequently Asked Questions
- What is CVE-2024-27285?
- YARD's default template vulnerable to Cross-site Scripting in generated frames.html This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2024-27285?
- CVE-2024-27285 affects yard. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-27285 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2017-17042HIGH
Arbitrary file read vulnerability in yard server
- CVE-2019-1020001HIGH
Path Traversal vulnerability that affects yard
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-41493MEDIUM
yard: Possible arbitrary path traversal and file access via yard server
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- CVE-2026-49342MEDIUM
YARD static cache reads raw traversal paths before router sanitization
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies