gradio-pdf
Affected
- introduced
0, fixed0.0.10(ecosystem)
Fixed versions
0.0.10
Fix
- Fixed version
0.0.10pip install --upgrade gradio-pdf==0.0.10
Advisory
Also known as: None
Arbitrary JavaScript execution due to using outdated libraries
Summary
gradio-pdf projects with dependencies on the pdf.js library are vulnerable to CVE-2024-4367, which allows arbitrary JavaScript execution.
PoC
alert(‘XSS’).)Impact
Malicious scripts can be injected into the code, and when linked with vulnerabilities such as CSRF, it can cause even greater damage. In particular, It can become a source of further attacks, especially when linked to social engineering.
Mitigation
Upgrade the pdf.js to v4.2.67, which removes the vulnerability. (or set the option isEvalSupported to false.)
Reference
Low Basis: The source's own band: LOW
0, fixed 0.0.10 (ecosystem)0.0.10
0.0.10pip install --upgrade gradio-pdf==0.0.10Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0