Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-0183 Overview
CVE-2025-0183 is a stored cross-site scripting (XSS) vulnerability in the Latex Proof-Reading Module of binary-husky/gpt_academic version 3.9.0. The flaw lets an authenticated attacker inject malicious scripts that persist in the debug_log.html file generated by the module. When an administrator later opens the debug report, the injected JavaScript executes in the admin's browser context. Exploitation can lead to unauthorized actions, session abuse, or access to data visible to the administrator. The weakness maps to CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Script execution in an administrator's browser can expose session tokens and enable actions on behalf of the admin within the gpt_academic application.
Affected Products
- binary-husky/gpt_academic version 3.9.0
- Latex Proof-Reading Module (component)
- Deployments exposing the generated debug_log.html to administrators
Discovery Timeline
- 2025-03-20 - CVE-2025-0183 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-0183
Vulnerability Analysis
The Latex Proof-Reading Module in gpt_academic generates an HTML debug report named debug_log.html. The module writes user-controlled content into this file without properly neutralizing HTML and JavaScript characters. An attacker with low-privileged access supplies crafted input to the proof-reading workflow. The malicious payload persists inside the generated HTML artifact.
When an administrator opens debug_log.html to review the module's output, the browser parses the stored payload as executable script. The attack requires user interaction from the victim and crosses a trust boundary from a standard user to the administrator reviewing debug output. The scope change reflects the fact that exploitation targets an admin context different from the attacker's own session.
Root Cause
The root cause is missing output encoding when rendering untrusted content into the debug_log.html artifact. The module treats proof-reading inputs as safe HTML rather than escaping characters such as <, >, ", and '. Stored payloads survive across sessions because the data is written to a persistent file on the server.
Attack Vector
Exploitation follows a standard stored XSS pattern. An authenticated attacker submits a document or Latex fragment containing a script payload to the Proof-Reading Module. The server embeds the payload inside debug_log.html. An administrator later opens the report, and the browser executes the attacker-controlled script with the admin's privileges in the application.
No verified public proof-of-concept code is published for this issue. See the Huntr Bounty Listing for additional context.
Detection Methods for CVE-2025-0183
Indicators of Compromise
- Presence of <script>, onerror=, onload=, or javascript: strings inside generated debug_log.html files
- Unexpected outbound requests from administrator browsers shortly after opening a debug report
- Proof-reading submissions containing HTML tags, encoded entities, or obfuscated JavaScript
- Modified or recently written debug_log.html artifacts correlated with low-privileged user activity
Detection Strategies
- Scan generated debug_log.html artifacts for HTML tags and event-handler attributes before admin review
- Inspect application logs for Proof-Reading Module submissions containing suspicious characters such as <, >, or encoded script markers
- Monitor admin browser sessions for anomalous DOM activity or script execution originating from local HTML files
Monitoring Recommendations
- Alert on file writes to debug_log.html paths followed by administrator access to the same file
- Track user-to-admin interaction chains in audit logs where generated artifacts bridge privilege boundaries
- Record and review Content Security Policy (CSP) violation reports from admin workstations opening module output
How to Mitigate CVE-2025-0183
Immediate Actions Required
- Restrict access to the Latex Proof-Reading Module to trusted users until a patched release is deployed
- Avoid opening debug_log.html files generated by untrusted submissions in a browser; inspect them in a text editor instead
- Review existing debug_log.html artifacts for injected script content and remove affected files
- Rotate administrator session tokens if any debug report from an untrusted source was recently viewed
Patch Information
No vendor advisory URL is listed in the NVD record at the time of writing. Monitor the binary-husky/gpt_academic repository and the Huntr Bounty Listing for an updated release addressing the stored XSS in the Latex Proof-Reading Module. Upgrade beyond version 3.9.0 once a fixed version is published.
Workarounds
- Apply strict HTML output encoding on all content written to debug_log.html within the module
- Serve generated debug reports with a restrictive Content Security Policy that disables inline scripts
- Sanitize Latex and proof-reading inputs server-side to strip HTML tags and JavaScript URI schemes
- Gate access to generated reports behind authentication and limit which roles can produce proof-reading output
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

