What’s Vulnerable › Vulnerabilities
CVE-2022-25760: Arbitrary Code Injection
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-03-17 · updated 2026-06-17
- Weakness: CWE-94
Description
All versions of package accesslog are vulnerable to Arbitrary Code Injection due to the usage of the Function constructor without input sanitization. If (attacker-controlled) user input is given to the format option of the package's exported constructor function, it is possible for an attacker to execute arbitrary JavaScript code on the host that this package is being run on.
Affected products
- accesslog: all versions
References
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099
Get alerted when CVE-2022-25760 or the next vulnerability affects your stack