{"cve":"CVE-2024-27285","nvd":{"published":"2024-02-28T20:15:41.940","modified":"2026-06-17T07:19:34.510","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","https://github.com/lsegal/yard/pull/1538","https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml"],"products":["debian:debian_linux","fedoraproject:fedora","yardoc:yard"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-27285","score":0.0106,"percentile":0.64552,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8mq4-9jjh-9xrc","url":"https://osv.dev/vulnerability/GHSA-8mq4-9jjh-9xrc","summary":"YARD's default template vulnerable to Cross-site Scripting in generated frames.html","modified":"2026-09-10T03:50:05.473957301Z","packages":[{"ecosystem":"RubyGems","name":"yard","purl":"pkg:gem/yard","ranges":["<0.9.36"],"fixed":["0.9.36"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}