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.
Remediation
References
https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099
https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6
Related Vulnerabilities
CVE-2019-15477 Vulnerability in maven package org.jooby:jooby
CVE-2021-25122 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2020-12648 Vulnerability in maven package org.webjars:tinymce
CVE-2022-35915 Vulnerability in npm package openzeppelin-solidity
CVE-2023-4316 Vulnerability in maven package org.webjars.npm:zod