{"id":"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.","aliases":["GHSA-8mq4-9jjh-9xrc"],"modified":"2026-05-18T05:57:46.915583908Z","published":"2024-02-28T19:22:15.026Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27285.json","cna_assigner":"GitHub_M"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lsegal/yard","events":[{"introduced":"0"},{"fixed":"e833aac7a01510245dd4ae1d1d18b046c8293c2d"}]}],"versions":["v0.9.35","v0.9.34","v0.9.33","v0.9.32","v0.9.31","v0.9.30","v0.9.29","v0.9.28","v0.9.27","v0.9.26","v0.9.25","v0.9.24","v0.9.23","v0.9.22","v0.9.21","v0.9.20","v0.9.19","v0.9.17","v0.9.16","v0.9.15","v0.9.14","v0.9.13","v0.9.12","v0.9.11","v0.9.10","v0.9.9","v0.9.8","v0.9.7","v0.9.6","v0.9.5","v0.9.4","v0.9.3","v0.9.2","v0.9.1","v0.9.0","v0.8.7.6","v0.8.7.5","v0.8.7.4","v0.8.7.3","v0.8.7.2","v0.8.7.1","v0.8.7","v0.8.6.1","v0.8.6.2","v0.8.6","v0.8.5.2","v0.8.5.1","v0.8.5","v0.8.4.1","v0.8.4","v0.8.3","v0.8.2.1","v0.8.2","v0.8.1","v0.8.0","v0.7.4","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.8","v0.6.7","v0.6.6","v0.6.5","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.8","v0.5.7","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.0","v0.2.3.2","v0.2.3.1","v0.2.3","v0.2.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27285.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}