{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27285","id":"CVE-2024-27285","title":"YARD's default template vulnerable to Cross-site Scripting in generated frames.html","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.","descriptionLong":"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","updated":"2026-11-11T10:30:50.436189853Z","reserved":"2024-02-22T18:08:38.872Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["lsegal yard"],"affectedProducts":[{"vendor":"lsegal","product":"yard","defaultStatus":null,"versions":[{"version":"< 0.9.36","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"yard","purl":"pkg:gem/yard","ranges":["<0.9.36"],"fixed":["0.9.36"],"advisory":"GHSA-8mq4-9jjh-9xrc"}],"cwes":["CWE-79"],"aliases":["GHSA-8mq4-9jjh-9xrc"],"references":[{"url":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/lsegal/yard/pull/1538","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html","tags":["x_transferred","Mailing List","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/","tags":["x_transferred","Mailing List","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27285.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27285","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8mq4-9jjh-9xrc","tags":["advisory"]},{"url":"https://github.com/lsegal/yard","tags":["package"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0106,"epssPercentile":0.65241,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27285","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27285","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27285","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8mq4-9jjh-9xrc","ok":true,"note":"GHSA-8mq4-9jjh-9xrc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27285","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}