YARD's default template vulnerable to Cross-site Scripting in generated frames.html
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| lsegal | yard | before 0.9.36 | 0.9.36 | Patch available | CNA |
| — | yard (RubyGems) | before 0.9.36 | 0.9.36 | Patch available | GHSA-8mq4-9jjh-9xrc |
- yard Vendorlsegal Affected before 0.9.36 Fixed in 0.9.36 Patch available CNA
- yard (RubyGems) Vendor— Affected before 0.9.36 Fixed in 0.9.36 Patch available GHSA-8mq4-9jjh-9xrc
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:* | before 0.9.36 | Vulnerable | Yardoc |
| cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* | 38 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:* Versions before 0.9.36 Vulnerable ·Yardoc
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Versions 38 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA yard (lsegal) Fixed in 0.9.36
- Fix · GHSA-8mq4-9jjh-9xrc yard (RubyGems) Fixed in 0.9.36 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Satellite 6 | Affected | No fix yet |
Not affected: 2 products
- Red Hat OpenStack Platform 16.1
- Red Hat OpenStack Platform 16.2
Timeline
- 2026-10-02 Threatist record created from CVE-2024-27285
- 2026-10-03 Alias added: GHSA-8mq4-9jjh-9xrc
References
Exploit 2
Patch 3
Advisory 2
Other 4
- https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/
- https://github.com/lsegal/yard
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA
More lsegal vulnerabilities
- TI-2026-36519 YARD static cache reads raw traversal paths before router sanitization CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-27285 · CVE Program
- CVE-2024-27285 · NVD
- FIRST EPSS
- GHSA-8mq4-9jjh-9xrc · GitHub Advisory Database · CC BY 4.0
- CVE-2024-27285 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences