cve/2024/CVE-2024-27285.md
2024-06-18 02:51:15 +02:00

20 lines
1.0 KiB
Markdown

### [CVE-2024-27285](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27285)
![](https://img.shields.io/static/v1?label=Product&message=yard&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%200.9.36%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-79%3A%20Improper%20Neutralization%20of%20Input%20During%20Web%20Page%20Generation%20('Cross-site%20Scripting')&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/lsegal/yard/security/advisories/GHSA-8mq4-9jjh-9xrc
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2024-27285.yml
#### Github
- https://github.com/NaInSec/CVE-LIST
- https://github.com/fkie-cad/nvd-json-data-feeds