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

Exp

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-28 Last update: 2025-02-14 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-27285 is rated High Exploit Risk (67.9/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 3.32%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-27285

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-27285

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-18 2.47% 3.32% +0.84%
2 2026-03-04 2.70% 2.47% -0.22%
3 2026-03-01 2.70%

Full EPSS history (41 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-27285

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.5 [email protected]
6.1 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.7 [email protected]

Weakness enumeration for CVE-2024-27285

GitHub Security Advisory for CVE-2024-27285

GHSA-8mq4-9jjh-9xrc · Severity: medium · Ecosystem: rubygems — YARD's default template vulnerable to Cross-site Scripting in generated frames.html

OS Trackers for CVE-2024-27285

vendor priority summary link
debian not yet assigned CVE-2024-27285 not yet assigned priority: Debian including 1 source packages (yard), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2024-27285
redhat medium https://access.redhat.com/security/cve/CVE-2024-27285
suse medium https://www.suse.com/security/cve/CVE-2024-27285/
ubuntu medium CVE-2024-27285 medium priority: Ubuntu including 1 source packages (yard), 8 status rows across 8 suites (bionic, focal, jammy, mantic, noble, trusty, upstream, xenial): released 6, ignored 1, not-affected 1. https://ubuntu.com/security/CVE-2024-27285

Affected software / configurations for CVE-2024-27285

Vendor Product Version Raw CPE
yardoc yard < 0.9.36 cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*
fedoraproject fedora 38 cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

References for CVE-2024-27285

cvelogic Threat Intelligence