CVEvulnerability
CVE-2022-25760
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-03-17
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 10.0 HIGH — AV:N/AC:L/Au:N/C:C/I:C/A:C
- Weaknesses
- 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 configurations
• accesslog project accesslog
Related
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6 Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099 Exploit, Third Party Advisory
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6 Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099 Exploit, Third Party Advisory