7.1high
Arbitrary Code Injection
- Severity
- 7.1high CVSS:3.1 by snyk
- Exploit likelihood
- 1.64% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-8m2f-74r2-x3f2
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
| Product or package | Versions | Reported by |
|---|---|---|
| accesslog | before unspecified | CVE List |
| accesslog (npm) | up to 0.0.2 | GitHub Advisory Database |
| accesslog_project accesslog | Not specified | NVD |
All scores
| snyk | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L/E:P |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 10.0high CVSS:2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Todas las versiones del paquete accesslog son vulnerables a una Inyección de Código Arbitrario debido al uso del constructor Function sin un saneo de entrada. Si la entrada del usuario (controlada por el atacante) le es dada la opción de formato de la función constructora exportada del paquete, es posible que un atacante ejecute código JavaScript arbitrario en el host en el que está siendo ejecutado este paquete
References
| https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099 | exploit, third-party-advisory, web | |
| https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6 | broken-link, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-25760 | advisory | |
| https://github.com/carlos8f/node-accesslog | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25760 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8m2f-74r2-x3f2 changed 2026-03-13 | CC-BY-4.0 |
| NVD | CVE-2022-25760 changed 2026-06-17 | Public domain |