CVE-2022-25760
CRITICAL 9.8CVSS 3.1Code injection in accesslog
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.
- Published
- 17 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-8m2f-74r2-x3f2
- Sources
- NVDJSONOSV GHSA-8m2f-74r2-x3f2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | accesslog_project | accesslogcpe:2.3:a:accesslog_project:accesslog:*:*:*:*:*:*:*:* |
all versions | |
| OSV | npm | accesslog | <= 0.0.2 |
References
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6 · Broken Link, WEB
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25760 · ADVISORY
- https://github.com/carlos8f/node-accesslog · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Mar 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 18 Mar 2022)