{"cve":"CVE-2022-25760","nvd":{"published":"2022-03-17T12:15:08.293","modified":"2026-06-17T04:34:13.893","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6","https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099","https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6","https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099"],"products":["accesslog_project:accesslog"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-25760","score":0.01639,"percentile":0.76366,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8m2f-74r2-x3f2","url":"https://osv.dev/vulnerability/GHSA-8m2f-74r2-x3f2","summary":"Code injection in accesslog","modified":"2026-03-13T22:11:45.051350Z","packages":[{"ecosystem":"npm","name":"accesslog","purl":"pkg:npm/accesslog","ranges":["<=0.0.2"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}