{"id":"CVE-2025-53890","kind":"vulnerability","aliases":["CVE-2025-53890","GHSA-8w3f-4r8f-pf53"],"related":[],"title":"pyLoad vulnerable to XSS through insecure CAPTCHA","description":"#### Summary\nAn unsafe JavaScript evaluation vulnerability in pyLoad’s CAPTCHA processing code allows **unauthenticated remote attackers** to execute **arbitrary code** in the client browser and potentially the backend server. Exploitation requires no user interaction or authentication and can result in session hijacking, credential theft, and full system rce.\n\n\n\n#### Details\nThe vulnerable code resides in \n```javascript\nfunction onCaptchaResult(result) {\n    eval(result); // Direct execution of attacker-controlled input\n}\n```\n\n* The `onCaptchaResult()` function directly passes CAPTCHA results (sent from the user) into `eval()`\n* No sanitization or validation is performed on this input\n* A malicious CAPTCHA result can include JavaScript such as `fetch()` or `child_process.exec()` in environments using NodeJS\n* Attackers can fully hijack sessions and pivot to remote code execution on the server if the environment allows it\n\n\n\n### Reproduction Methods\n1. **Official Source Installation**:\n```bash\ngit clone https://github.com/pyload/pyload\ncd pyload\ngit checkout 0.4.20\npython -m pip install -e .\npyload --userdir=/tmp/pyload\n```\n\n2. **Virtual Environment**:\n```bash\npython -m venv pyload-env\nsource pyload-env/bin/activate\npip install pyload==0.4.20\npyload\n```\n\n## CAPTCHA Endpoint Verification\n\n\n**Technical Clarification**:  \n1. The vulnerable endpoint is actually:\n   ```\n   /interactive/captcha\n   ```\n\n2. Complete PoC Request:\n```http\nPOST /interactive/captcha HTTP/1.1\nHost: localhost:8000\nContent-Type: application/x-www-form-urlencoded\n\ncid=123&response=1%3Balert(document.cookie)\n```\n\n3. Curl Command Correction:\n```bash\ncurl -X POST \"http://localhost:8000/interactive/captcha\" \\\n  -d \"cid=123&response=1%3Balert(document.cookie)\"\n```\n\n\n1. **Vulnerable Code Location**:  \n   The eval() vulnerability is confirmed in:\n   ```\n   src/pyload/webui/app/static/js/captcha-interactive.user.js\n   ```\n\n\n\n### **Resources**\n\n1. https://github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546\n2. [OWASP: Avoid `eval()`](https://cheatsheetseries.owasp.org/cheatsheets/JavaScript_Security_Cheat_Sheet.html#eval)\n3. [#4586](https://github.com/pyload/pyload/pull/4586)","summary":"pyLoad passes CAPTCHA responses from its web interface directly into a JavaScript eval() call with no validation. A remote attacker can send a crafted response to the interactive CAPTCHA endpoint to run script in a user's browser and potentially on the server, leading to session hijacking and credential theft.","severity":"critical","cvss":9.8,"epss":0.01298,"exploited":false,"exploited_at":null,"products":[{"name":"pyload-ng","fixed":["0.20"],"affected":"< 0.20","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["cwe-79","cwe-94","package","pyload","python","self-hosted"],"not_affected_if":["pyload-ng-0.20-or-later","web-interface-not-exposed"],"how_to_check":"- Check the installed version with `pip show pyload-ng`; versions below `0.20` are affected.\n- Check whether the web interface is reachable from untrusted networks on the port pyLoad listens on (default `8000`).\n- Look for the file `src/pyload/webui/app/static/js/captcha-interactive.user.js` in the installed package and see whether it calls `eval(` on the CAPTCHA result.","fix":"- `pyload-ng` to `0.20`, which is the fixed version in the product data.","status":"open","published_at":"2025-07-15T00:15:24+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","triaged_at":"2026-11-16T16:08:49+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T16:08:49Z","model":"claude-haiku-5-5","output":{"fix":"- `pyload-ng` to `0.20`, which is the fixed version in the product data.","reach":"internet","title":"pyLoad: unauthenticated CAPTCHA input runs as JavaScript in browsers","impact":"high","summary":"pyLoad passes CAPTCHA responses from its web interface directly into a JavaScript eval() call with no validation. A remote attacker can send a crafted response to the interactive CAPTCHA endpoint to run script in a user's browser and potentially on the server, leading to session hijacking and credential theft.","audience":"businesses","category":"package","nicknames":[],"who_cares":["pyload","python","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"Attacker runs script in browsers and possibly executes code on the server","analyst_note":"","how_to_check":"- Check the installed version with `pip show pyload-ng`; versions below `0.20` are affected.\n- Check whether the web interface is reachable from untrusted networks on the port pyLoad listens on (default `8000`).\n- Look for the file `src/pyload/webui/app/static/js/captcha-interactive.user.js` in the installed package and see whether it calls `eval(` on the CAPTCHA result.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["pyload-ng-0.20-or-later","web-interface-not-exposed"],"who_is_affected":"Any team running pyLoad's web interface (pyload-ng before 0.20) is exposed, because the vulnerable CAPTCHA endpoint accepts unauthenticated POST requests. Installations where the web interface is not reachable by untrusted parties carry much less risk. Teams that only use pyLoad as a local tool on a private machine can treat it as lower priority, but should still upgrade.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000887,"input_tokens":5475,"output_tokens":679,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':9A,17A '-53890':10A,18A '-79':23B '-94':25B '/bin/activate':245C '/cheatsheets/javascript_security_cheat_sheet.html#eval)':323C '/interactive/captcha':262C,269C '/pyload/pyload':217C '/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546':316C '/pyload/pyload/pull/4586)':328C '/tmp/pyload':230C '0.4.20':222C,249C '1':208C,256C,281C,298C,301C,313C '123':279C,296C '2':231C,263C,317C '3':284C,324C '3balert':282C,299C '4586':325C '4r8f':14A '8000':273C '8000/interactive/captcha':293C '8w3f':13A 'actual':261C 'allow':94C,204C 'application/x-www-form-urlencoded':277C 'arbitrari':100C 'attack':51B,97C,146C,187C 'attacker-control':145C 'authent':117C 'avoid':319C 'backend':109C 'bash':212C,234C,288C 'browser':69B,105C 'call':45B 'captcha':7A,34B,60B,91C,154C,173C,251C 'cd':218C 'cheatsheetseries.owasp.org':322C 'cheatsheetseries.owasp.org/cheatsheets/javascript_security_cheat_sheet.html#eval)':321C 'checkout':221C 'child_process.exec':182C 'cid':278C,295C 'clarif':255C 'client':104C 'clone':214C 'code':93C,101C,133C,196C,303C 'command':286C 'complet':264C 'confirm':309C 'content':275C 'content-typ':274C 'control':147C 'correct':287C 'craft':55B 'credenti':80B,124C 'curl':285C,289C 'cve':8A,16A 'cwe':22B,24B 'd':294C 'detail':130C 'direct':40B,142C,152C 'document.cookie':283C,300C 'e':227C 'endpoint':61B,252C,259C 'env':240C,244C 'environ':184C,203C,233C 'eval':44B,140C,161C,306C,320C 'evalu':86C 'execut':99C,143C,197C 'exploit':111C 'fetch':180C 'full':127C 'fulli':189C 'function':137C,151C 'ghsa':12A 'ghsa-8w3f-4r8f-pf53':11A 'git':213C,220C 'github.com':216C,315C,327C 'github.com/pyload/pyload':215C 'github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546':314C 'github.com/pyload/pyload/pull/4586)':326C 'hijack':78B,123C,190C 'host':31B,271C 'http':267C 'http/1.1':270C 'includ':176C 'input':148C,170C 'insecur':6A 'instal':211C,226C,247C 'interact':59B,115C 'interfac':39B 'javascript':43B,85C,136C,177C 'lead':75B 'localhost':272C,292C 'locat':304C 'm':224C,236C 'malici':172C 'method':207C 'ng':21A 'nodej':186C 'offici':209C 'oncaptcharesult':138C,150C 'owasp':318C 'packag':26B 'pass':33B,153C 'perform':167C 'pf53':15A 'pip':225C,246C 'pivot':193C 'poc':265C 'post':268C,291C 'potenti':71B,107C 'process':92C 'pyload':1A,20A,27B,32B,89C,219C,228C,239C,243C,248C,250C 'pyload-env':238C,242C 'pyload-ng':19A 'python':28B,223C,235C 'rce':129C 'remot':50B,96C,195C 'reproduct':206C 'request':266C 'requir':112C 'resid':134C 'resourc':312C 'respons':35B,56B,280C,297C 'result':120C,139C,141C,155C,174C 'run':63B 'sanit':163C 'script':64B 'self':30B 'self-host':29B 'send':53B 'sent':156C 'server':74B,110C,200C 'session':77B,122C,191C 'sourc':210C,241C 'src/pyload/webui/app/static/js/captcha-interactive.user.js':311C 'summari':82C 'system':128C 'technic':254C 'theft':81B,125C 'type':276C 'unauthent':95C 'unsaf':84C 'use':185C 'user':67B,114C,159C 'userdir':229C 'valid':48B,165C 'venv':237C 'verif':253C 'virtual':232C 'vulner':2A,87C,132C,258C,302C,307C 'web':38B 'x':290C 'xss':4A","nicknames":[],"mitigations":[],"who_affected":"Any team running pyLoad's web interface (pyload-ng before 0.20) is exposed, because the vulnerable CAPTCHA endpoint accepts unauthenticated POST requests. Installations where the web interface is not reachable by untrusted parties carry much less risk. Teams that only use pyLoad as a local tool on a private machine can treat it as lower priority, but should still upgrade.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["pyloadng"],"ptokens":["ng","pyload"],"labels":["critical","cwe79","cwe94","package","pyload","pypi","python","selfhosted"],"campaign_type":null,"search_a":"'-2025':9A,17A '-53890':10A,18A '4r8f':14A '8w3f':13A 'captcha':7A 'cve':8A,16A 'ghsa':12A 'ghsa-8w3f-4r8f-pf53':11A 'insecur':6A 'ng':21A 'pf53':15A 'pyload':1A,20A 'pyload-ng':19A 'vulner':2A 'xss':4A","search_b":"'-79':23B '-94':25B 'attack':51B 'browser':69B 'call':45B 'captcha':34B,60B 'craft':55B 'credenti':80B 'cwe':22B,24B 'direct':40B 'endpoint':61B 'eval':44B 'hijack':78B 'host':31B 'interact':59B 'interfac':39B 'javascript':43B 'lead':75B 'packag':26B 'pass':33B 'potenti':71B 'pyload':27B,32B 'python':28B 'remot':50B 'respons':35B,56B 'run':63B 'script':64B 'self':30B 'self-host':29B 'send':53B 'server':74B 'session':77B 'theft':81B 'user':67B 'valid':48B 'web':38B","search_c":"'/bin/activate':245C '/cheatsheets/javascript_security_cheat_sheet.html#eval)':323C '/interactive/captcha':262C,269C '/pyload/pyload':217C '/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546':316C '/pyload/pyload/pull/4586)':328C '/tmp/pyload':230C '0.4.20':222C,249C '1':208C,256C,281C,298C,301C,313C '123':279C,296C '2':231C,263C,317C '3':284C,324C '3balert':282C,299C '4586':325C '8000':273C '8000/interactive/captcha':293C 'actual':261C 'allow':94C,204C 'application/x-www-form-urlencoded':277C 'arbitrari':100C 'attack':97C,146C,187C 'attacker-control':145C 'authent':117C 'avoid':319C 'backend':109C 'bash':212C,234C,288C 'browser':105C 'captcha':91C,154C,173C,251C 'cd':218C 'cheatsheetseries.owasp.org':322C 'cheatsheetseries.owasp.org/cheatsheets/javascript_security_cheat_sheet.html#eval)':321C 'checkout':221C 'child_process.exec':182C 'cid':278C,295C 'clarif':255C 'client':104C 'clone':214C 'code':93C,101C,133C,196C,303C 'command':286C 'complet':264C 'confirm':309C 'content':275C 'content-typ':274C 'control':147C 'correct':287C 'credenti':124C 'curl':285C,289C 'd':294C 'detail':130C 'direct':142C,152C 'document.cookie':283C,300C 'e':227C 'endpoint':252C,259C 'env':240C,244C 'environ':184C,203C,233C 'eval':140C,161C,306C,320C 'evalu':86C 'execut':99C,143C,197C 'exploit':111C 'fetch':180C 'full':127C 'fulli':189C 'function':137C,151C 'git':213C,220C 'github.com':216C,315C,327C 'github.com/pyload/pyload':215C 'github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546':314C 'github.com/pyload/pyload/pull/4586)':326C 'hijack':123C,190C 'host':271C 'http':267C 'http/1.1':270C 'includ':176C 'input':148C,170C 'instal':211C,226C,247C 'interact':115C 'javascript':85C,136C,177C 'localhost':272C,292C 'locat':304C 'm':224C,236C 'malici':172C 'method':207C 'nodej':186C 'offici':209C 'oncaptcharesult':138C,150C 'owasp':318C 'pass':153C 'perform':167C 'pip':225C,246C 'pivot':193C 'poc':265C 'post':268C,291C 'potenti':107C 'process':92C 'pyload':89C,219C,228C,239C,243C,248C,250C 'pyload-env':238C,242C 'python':223C,235C 'rce':129C 'remot':96C,195C 'reproduct':206C 'request':266C 'requir':112C 'resid':134C 'resourc':312C 'respons':280C,297C 'result':120C,139C,141C,155C,174C 'sanit':163C 'sent':156C 'server':110C,200C 'session':122C,191C 'sourc':210C,241C 'src/pyload/webui/app/static/js/captcha-interactive.user.js':311C 'summari':82C 'system':128C 'technic':254C 'theft':125C 'type':276C 'unauthent':95C 'unsaf':84C 'use':185C 'user':114C,159C 'userdir':229C 'valid':165C 'venv':237C 'verif':253C 'virtual':232C 'vulner':87C,132C,258C,302C,307C 'x':290C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-07-14T20:52:48+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-8w3f-4r8f-pf53","url":"https://github.com/advisories/GHSA-8w3f-4r8f-pf53","severity":"critical","published_at":"2025-07-15T15:38:10+00:00","modified_at":"2026-11-16T16:06:04+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","fetched_at":"2026-11-16T16:17:15+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-53890","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53890","severity":null,"published_at":"2025-07-15T00:15:24+00:00","modified_at":"2026-06-17T09:39:05+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171033,"url":"https://api.github.com/repos/pyload/pyload/security-advisories/GHSA-8w3f-4r8f-pf53","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":171034,"url":"https://github.com/pyload/pyload/security/advisories/GHSA-8w3f-4r8f-pf53","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2025-07-14T20:52:48+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"},{"id":171035,"url":"https://github.com/pyload/pyload/pull/4586","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171036,"url":"https://github.com/pyload/pyload/commit/909e5c97885237530d1264cfceb5555870eb9546","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01298,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-53890"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}