carlos8f/node-accesslog · Security

Code injection in accesslog

GHSA ID
GHSA-8m2f-74r2-x3f2
CVE ID
CVE-2022-25760
Severity
high
Published
Updated
CVSS
7.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
CVSS v3
7.1 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L

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.

CWEs

References