CVE-2022-25760
All versions of package accesslog are vulnerable to Arbitrary Code Injection due to the usage of the Function constructor without input sanitization.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.64%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.64% probability · 75th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- accesslog project/accesslog
- Source
- report@snyk.io
References
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099Exploit, Third Party Advisory
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.