CVE-2022-25760
JSON

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 packageVersionsReported by
accesslogbefore unspecifiedCVE List
accesslog (npm)up to 0.0.2GitHub Advisory Database
accesslog_project accesslogNot specifiedNVD

All scores

snyk7.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L/E:P
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0high CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2022-25760 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-8m2f-74r2-x3f2 changed 2026-03-13CC-BY-4.0
NVDCVE-2022-25760 changed 2026-06-17Public domain