CVE-2024-27285 YARD's default template vulnerable to Cross-site Scripting in generated frames.html
MediumCVSS 6.1
EPSS 1.1%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
12 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/yard(Debian 12) | < 0.9.28-2+deb12u2; = 0.9.28-2; = 0.9.28-2+deb12u1 | 0.9.28-2+deb12u2 | Fixed |
| debian/yard(Debian 13) | < 0.9.36-1 | 0.9.36-1 | Fixed |
| debian/yard(Debian 14) | < 0.9.36-1 | 0.9.36-1 | Fixed |
| rubygems yard(RubyGems) | < 0.9.36; = 0.2.0; = 0.2.1; = 0.2.2 +87 more | 0.9.36 | Fixed |
| ubuntu/yard(Ubuntu 20.04) | < 0.9.24-1+deb11u1build0.20.04.1; = 0.9.16-1; = 0.9.20-1; = 0.9.24-1 | 0.9.24-1+deb11u1build0.20.04.1 | Fixed |
| ubuntu/yard(Ubuntu 22.04) | < 0.9.26-1ubuntu0.1; = 0.9.24-1; = 0.9.26-1 | 0.9.26-1ubuntu0.1 | Fixed |
| ubuntu/yard(Ubuntu Pro 16.04) | < 0.8.7.6+git20160220-3ubuntu0.1~esm1; = 0.8.7.6+git20160220-3; = 0.8.7.6-1 | 0.8.7.6+git20160220-3ubuntu0.1~esm1 | Fixed |
| ubuntu/yard(Ubuntu Pro 18.04) | < 0.9.12-2ubuntu0.1~esm1; = 0.9.9-1; = 0.9.12-1; = 0.9.12-1ubuntu3 +1 more | 0.9.12-2ubuntu0.1~esm1 | Fixed |
| yardoc yard | < 0.9.36; = 0.9.36 | 0.9.36 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 38 | No fix listed | Versions listed |
| lsegal yard | = < 0.9.36 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems yard(RubyGems) | < 0.9.36 | 0.9.36 |
| rubygems yard(RubyGems) | = 0.2.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.3.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.3.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.3.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.2.3.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.4.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.1p1 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.6 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.7 | No fix listed |
| rubygems yard(RubyGems) | = 0.5.8 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.4 | No fix listed |
Show 91 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems yard(RubyGems) | = 0.6.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.6 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.7 | No fix listed |
| rubygems yard(RubyGems) | = 0.6.8 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.7.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.2.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.4.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.5.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.5.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.6 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.6.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.6.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.8.7.6 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.0 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.1 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.10 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.11 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.12 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.13 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.14 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.15 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.16 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.17 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.18 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.19 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.2 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.20 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.21 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.22 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.23 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.24 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.25 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.26 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.27 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.28 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.29 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.3 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.30 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.31 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.32 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.33 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.34 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.35 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.4 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.5 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.6 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.7 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.8 | No fix listed |
| rubygems yard(RubyGems) | = 0.9.9 | No fix listed |
| debian/yard(Debian:12) | < 0.9.28-2+deb12u2 | 0.9.28-2+deb12u2 |
| debian/yard(Debian:12) | = 0.9.28-2 | No fix listed |
| debian/yard(Debian:12) | = 0.9.28-2+deb12u1 | No fix listed |
| debian/yard(Debian:13) | < 0.9.36-1 | 0.9.36-1 |
| debian/yard(Debian:14) | < 0.9.36-1 | 0.9.36-1 |
| ubuntu/yard(Ubuntu:22.04) | < 0.9.26-1ubuntu0.1 | 0.9.26-1ubuntu0.1 |
| lsegal yard | = < 0.9.36 | No fix listed |
| yardoc yard | = 0.9.36 | No fix listed |
| yardoc yard | < 0.9.36 | 0.9.36 |
| fedoraproject fedora | = 38 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:16.04) | < 0.8.7.6+git20160220-3ubuntu0.1~esm1 | 0.8.7.6+git20160220-3ubuntu0.1~esm1 |
| ubuntu/yard(Ubuntu:Pro:16.04) | = 0.8.7.6-1 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:16.04) | = 0.8.7.6+git20160220-3 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:18.04) | < 0.9.12-2ubuntu0.1~esm1 | 0.9.12-2ubuntu0.1~esm1 |
| ubuntu/yard(Ubuntu:Pro:18.04) | = 0.9.9-1 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:18.04) | = 0.9.12-1 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:18.04) | = 0.9.12-1ubuntu3 | No fix listed |
| ubuntu/yard(Ubuntu:Pro:18.04) | = 0.9.12-2 | No fix listed |
| ubuntu/yard(Ubuntu:20.04) | < 0.9.24-1+deb11u1build0.20.04.1 | 0.9.24-1+deb11u1build0.20.04.1 |
| ubuntu/yard(Ubuntu:20.04) | = 0.9.16-1 | No fix listed |
| ubuntu/yard(Ubuntu:20.04) | = 0.9.20-1 | No fix listed |
| ubuntu/yard(Ubuntu:20.04) | = 0.9.24-1 | No fix listed |
| ubuntu/yard(Ubuntu:22.04) | = 0.9.24-1 | No fix listed |
| ubuntu/yard(Ubuntu:22.04) | = 0.9.26-1 | No fix listed |
References
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc exploit issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/lsegal/yard/pull/1538 issue-tracking patch
- https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa patch
- https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be issue-tracking patch
- github.com vendor-advisory
- github.com product
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml exploit third-party-advisory
- lists.debian.org mailing-list
- lists.fedoraproject.org mailing-list
- Debian Security Tracker CVE-2024-27285 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6731-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- github.com issue-tracking