Dosage Vulnerable to Stored Cross-Site Scripting (XSS) in HTML/RSS Output Handlers
Dosage versions prior to 3.3 contain a stored cross-site scripting (XSS) vulnerability in their HTML and RSS output handlers. User-controlled content such as comic text and page URLs are written directly into generated HTML and RSS files without proper HTML escaping. This allows attacker-controlled JavaScript to execute in the browser when a user opens these files. The vulnerability stems from the lack of sanitization or escaping of untrusted input before writing to output files.
AI Analysis
Technical Summary
The HTML and RSS output handlers in dosage (dosagelib/events.py) write unescaped user-controlled content (comic text and page URLs) directly into generated files. The BasicScraper.fetchText() method calls html.unescape() on extracted text, but no subsequent escaping or sanitization occurs before writing to HTML or RSS output. This results in stored XSS where malicious JavaScript embedded in comic text or URLs executes when the generated files are opened. The vulnerability affects dosage versions prior to 3.3.
Potential Impact
An attacker who can supply malicious comic text or URLs can inject JavaScript into the generated HTML or RSS files. When a user opens these files in a browser, the malicious script executes, potentially leading to theft of cookies or other sensitive information. The vulnerability impacts confidentiality and integrity by enabling cross-site scripting attacks. There is no indication of denial of service or direct system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid opening HTML or RSS files generated by vulnerable dosage versions with untrusted content. Applying proper HTML escaping or sanitization to all user-controlled content before writing to output files is necessary to prevent exploitation.
Dosage Vulnerable to Stored Cross-Site Scripting (XSS) in HTML/RSS Output Handlers
Description
Dosage versions prior to 3.3 contain a stored cross-site scripting (XSS) vulnerability in their HTML and RSS output handlers. User-controlled content such as comic text and page URLs are written directly into generated HTML and RSS files without proper HTML escaping. This allows attacker-controlled JavaScript to execute in the browser when a user opens these files. The vulnerability stems from the lack of sanitization or escaping of untrusted input before writing to output files.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The HTML and RSS output handlers in dosage (dosagelib/events.py) write unescaped user-controlled content (comic text and page URLs) directly into generated files. The BasicScraper.fetchText() method calls html.unescape() on extracted text, but no subsequent escaping or sanitization occurs before writing to HTML or RSS output. This results in stored XSS where malicious JavaScript embedded in comic text or URLs executes when the generated files are opened. The vulnerability affects dosage versions prior to 3.3.
Potential Impact
An attacker who can supply malicious comic text or URLs can inject JavaScript into the generated HTML or RSS files. When a user opens these files in a browser, the malicious script executes, potentially leading to theft of cookies or other sensitive information. The vulnerability impacts confidentiality and integrity by enabling cross-site scripting attacks. There is no indication of denial of service or direct system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid opening HTML or RSS files generated by vulnerable dosage versions with untrusted content. Applying proper HTML escaping or sanitization to all user-controlled content before writing to output files is necessary to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-75mw-h36v-2jv7
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600ac19c2644c7f8fe3275
Added to database: 07/22/2026, 00:11:45 UTC
Last enriched: 07/22/2026, 00:55:09 UTC
Last updated: 07/22/2026, 01:35:57 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.