{"id":"CVE-2024-27285","published":"2024-02-28T19:22:15Z","modified":"2025-02-13T17:46:21Z","title":"YARD's default template vulnerable to Cross-site Scripting in generated frames.html","vendor":"lsegal","product":"yard","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0106,"percentile":0.65349,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lsegal/yard/pull/1538","tags":["x_refsource_MISC"]},{"url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","tags":["x_refsource_MISC"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/","tags":[]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":13.07},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"lsegal","affectedVersions":[{"vendor":"lsegal","product":"yard","versions":["< 0.9.36"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-29T20:48:49.252393Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"yard","vulnerableRanges":["<0.9.36"],"patched":["0.9.36"],"from":["GHSA-8mq4-9jjh-9xrc"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw exists in the frames.html file generated by YARD, the Ruby documentation tool, caused by inadequate sanitization of user input in the JavaScript section of the frames.erb template. An attacker can exploit it over the network with low complexity and no privileges, but only if a user interacts with the crafted content, such as by opening a malicious link to the generated documentation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:48Z"},"euvd":{"id":"EUVD-2024-0579","exploited":false,"provenance":"source"}}