Advisories for Npm/Accesslog package

2022

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

All versions of package accesslog is 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.