Skip to content
OpenAdvisories
Medium · 5.4 CVE-2024-27285 EUVD-2024-0579GHSA-8mq4-9jjh-9xrc

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

Published Feb 28, 2024 · Updated Feb 13, 2025 · 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.

Affected products

VendorProductAffectedFixed
lsegal yard < 0.9.36 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 yard 0.9.36-1 —
Debian 13 yard 0.9.36-1 —
Debian 12 yard 0.9.28-2+deb12u2 DSA-5635-1
Debian 11 yard 0.9.24-1+deb11u1 DSA-5635-1
Debian 10 yard 0.9.16-1+deb10u1 DLA-3753-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS yard 0.9.26-1ubuntu0.1 USN-6731-1
Ubuntu 20.04 LTS yard 0.9.24-1+deb11u1build0.20.04.1 USN-6731-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS yard 0.9.12-2ubuntu0.1~esm1 USN-6731-1
Ubuntu Pro 16.04 LTS yard 0.8.7.6+git20160220-3ubuntu0.1~esm1 USN-6731-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems yard < 0.9.36 0.9.36 GHSA-8mq4-9jjh-9xrc

Advisories 3

References