CVE-2022-25760

HIGH

accesslog - Arbitrary Code Injection via Format Option

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099

Scores

CVSS v3 7.1
EPSS 0.0041
EPSS Percentile 61.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L

Details

CWE
CWE-94
Status published
Products (2)
accesslog_project/accesslog
npm/accesslog 0npm
Published Mar 17, 2022
Tracked Since Feb 18, 2026