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://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6
https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099
Related Vulnerabilities
CVE-2023-6886 Vulnerability in maven package com.xnx3.wangmarket:wangmarket
CVE-2022-26112 Vulnerability in maven package org.apache.pinot:pinot-controller
CVE-2020-28500 Vulnerability in maven package org.webjars.npm:lodash
CVE-2020-26938 Vulnerability in npm package oauth2-server
CVE-2020-13697 Vulnerability in maven package org.nanohttpd:nanohttpd-nanolets