Cross-site Scripting (XSS) Affecting yard package, versions <0.9.12-2ubuntu0.1~esm1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.06% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-YARD-6346710
  • published1 Jun 2025
  • disclosed28 Feb 2024

Introduced: 28 Feb 2024

CVE-2024-27285  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 yard to version 0.9.12-2ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream yard package and not the yard package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1