VDB

CVE-2024-27285

CVE-2024-27285 PUBLISHED CVSS 5.4 MEDIUM

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

Reported by github_m · Published February 28, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
yardyardoc0.9.36

Risk scores

CVSS 3.1
5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected products

VendorProductVersions
lsegalyard< 0.9.36
RubyGemsyard0
yardocyard0.9.36
lsegalyard0

Timeline

  • Feb 28, 2024 CVE Published
  • Feb 28, 2024 PoC Published (3 in total, the first dated here)
  • Feb 29, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 29, 2024 Fix PR Merged
  • Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
  • Jan 15, 2026 Security Advisory
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-27285
vulnetix vdb fixes CVE-2024-27285

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27285/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›