openEuler Security Advisory
OESA-2024-1256
rubygem-yard security update
Details
YARD is a documentation generation tool for the Ruby programming language. It enables the user to generate consistent, usable documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions.
Security Fix(es):
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.(CVE-2024-27285)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:20.03-LTS-SP1 | rubygem-yard | All versions before 0.9.26-2.oe1 (fixed in 0.9.26-2.oe1) |
| openEuler:20.03-LTS-SP4 | rubygem-yard | All versions before 0.9.26-2.oe2003sp4 (fixed in 0.9.26-2.oe2003sp4) |
| openEuler:22.03-LTS | rubygem-yard | All versions before 0.9.26-3.oe2203sp3 (fixed in 0.9.26-3.oe2203sp3) |
| openEuler:22.03-LTS-SP1 | rubygem-yard | All versions before 0.9.26-3.oe2203sp1 (fixed in 0.9.26-3.oe2203sp1) |
| openEuler:22.03-LTS-SP2 | rubygem-yard | All versions before 0.9.26-3.oe2203sp2 (fixed in 0.9.26-3.oe2203sp2) |
| openEuler:22.03-LTS-SP3 | rubygem-yard | All versions before 0.9.26-3.oe2203sp3 (fixed in 0.9.26-3.oe2203sp3) |