CVE-2024-27285
Yardoc Yard vulnerability
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.
Affected products
Yard, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Yardoc Yard runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc · Exploit
- github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa · Patch
- github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be · Patch
- github.com/lsegal/yard/pull/1538 · Patch
- github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml · Exploit
- lists.debian.org/debian-lts-announce/2024/03/msg00006.html
- lists.fedoraproject.org/archives/list/[email protected]/message/MR3
- nvd.nist.gov/vuln/detail/CVE-2024-27285
- nvd.nist.gov/vuln/detail/CVE-2024-27285
- cve.org/CVERecord?id=CVE-2024-27285
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.