{"id":"CVE-2024-27285","state":"PUBLISHED","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.","publishedAt":"2024-02-28T19:22:15.026Z","updatedAt":"2025-02-13T17:46:21.796Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["lsegal yard"],"affected":[{"vendor":"lsegal","product":"yard","versions":[{"version":"< 0.9.36","status":"affected"}]}],"references":["https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","https://github.com/lsegal/yard/pull/1538","https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml","https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27285.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-27285","state":"PUBLISHED","datePublished":"2024-02-28T19:22:15.026Z","dateUpdated":"2025-02-13T17:46:21.796Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-02-22T18:08:38.872Z"},"containers":{"cna":{"title":"YARD's default template vulnerable to Cross-site Scripting in generated frames.html","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"lsegal","product":"yard","versions":[{"version":"< 0.9.36","status":"affected"}]}],"references":[{"url":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","name":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lsegal/yard/pull/1538","name":"https://github.com/lsegal/yard/pull/1538","tags":["x_refsource_MISC"]},{"url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","name":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","tags":["x_refsource_MISC"]},{"url":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","name":"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","name":"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"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-21T02:06:28.560Z"},"source":{"advisory":"GHSA-8mq4-9jjh-9xrc","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","name":"https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/lsegal/yard/pull/1538","name":"https://github.com/lsegal/yard/pull/1538","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","name":"https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","name":"https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml","name":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:28:00.247Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"yardoc","product":"yard","defaultStatus":"unknown","versions":[{"version":"0.9.36","status":"affected"}],"cpes":["cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-02-29T20:48:49.252393Z","id":"CVE-2024-27285","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-28T14:08:36.455Z"}}]}}}