Cross-site scripting in YARD - CVE-2024-27285

 

Cross-site scripting in YARD - CVE-2024-27285

Published: March 25, 2024


Vulnerability identifier: #VU87783
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2024-27285
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data passed to the frames.erb template. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

YARD
Debian Linux
openEuler
Fedora
yard (Debian package)
rubygem-yard
rubygem-yard-doc

How to mitigate CVE-2024-27285

Install updates from vendor's website.

YARD - update to 0.9.36
yard (Debian package) - addressed in versions 0.9.24-1+deb11u1, 0.9.28-2+deb12u2
rubygem-yard - update to 0.9.26-2
rubygem-yard-doc - update to 0.9.26-2
rubygem-yard - update to 0.9.36-1.fc38

External References

Related Security Bulletins