# CVE-2024-27285: YARD's default template vulnerable to Cross-site Scripting in generated frames.html

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 66% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-02-28T18:57:19.000Z
- Modified: 2026-09-10T03:50:05.473Z
- Also known as: GHSA-8mq4-9jjh-9xrc
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lsegal yard: < 0.9.36
- yardoc yard: 0.9.36; before 0.9.36
- yard (RubyGems): before 0.9.36
- fedoraproject fedora: 38
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc> (exploit, vendor-advisory, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml> (exploit, third-party-advisory, web)
- <https://github.com/lsegal/yard/pull/1538> (issue-tracking, patch, web)
- <https://github.com/lsegal/yard/commit/1fcb2d8b316caf8779cfdcf910715e9ab583f0aa> (patch, web)
- <https://github.com/lsegal/yard/commit/2069e2bf08293bda2fcc78f7d0698af6354054be> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00006.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA/> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27285> (advisory)
- <https://github.com/advisories/GHSA-8mq4-9jjh-9xrc> (advisory)
- <https://github.com/lsegal/yard> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MR3Z2E2UIZZ7YOR7R645EVSBGWMB2RGA> (web)

## Sources

- CVE List: [CVE-2024-27285](https://www.cve.org/CVERecord?id=CVE-2024-27285), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-8mq4-9jjh-9xrc](https://github.com/advisories/GHSA-8mq4-9jjh-9xrc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27285](https://nvd.nist.gov/vuln/detail/CVE-2024-27285), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27285 · Whole record: https://cve.day/CVE-2024-27285.json · Rebuilt by cve.day 2026-11-25T22:58:37.115Z
