{"id":"CVE-2024-27285","aliases":["GHSA-8mq4-9jjh-9xrc"],"url":"https://o3.security/vulnerability/CVE-2024-27285","summary":"YARD's default template vulnerable to Cross-site Scripting in generated frames.html","details":"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.","published":"2024-02-28T19:22:15.026Z","modified":"2026-08-08T03:46:16.778607740Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"yard","fixedVersion":"0.9.36"}],"fix":{"url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","label":"lsegal/yard@1fcb2d8"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27285.json"},{"type":"ADVISORY","url":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc"},{"type":"ADVISORY","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27285"},{"type":"FIX","url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa"},{"type":"FIX","url":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be"},{"type":"FIX","url":"https://github.com/lsegal/yard/pull/1538"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:46:16.778607740Z"}}