Advisory

GHSA-8m2f-74r2-x3f2

Also known as: CVE-2022-25760

Summary

Code injection in accesslog

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-18 00:01 UTC
Modified
2026-03-13 22:11 UTC

Affected packages and fixes

accesslog

npm · All systems

Affected

  • introduced 0, last affected 0.0.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences