CVE-2024-27285Yardoc Yard
Medium 6.1 No auth needed
Follow: this CVE · Yardoc · Yardoc Yard We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 66
- Auth required
- No
- Published
- Feb 28, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Yard.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | yard |
< 0.9.36 |
0.9.36 |
gem "yard", ">= 0.9.36" |
Per OSV / GitHub Advisories (GHSA-8mq4-9jjh-9xrc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yardoc | yard | < 0.9.36 |
| fedoraproject | fedora | 38 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Issue Tracking Patch
- github.com Exploit Vendor Advisory
- github.com Exploit Third Party Advisory
- lists.debian.org Mailing List
- lists.fedoraproject.org Mailing List