Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Accesslog Project | Accesslog | All versions |
Related Weaknesses (CWE)
References
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099ExploitThird Party Advisory
- https://github.com/carlos8f/node-accesslog/blob/master/lib/compile.js%23L6Broken Link
- https://snyk.io/vuln/SNYK-JS-ACCESSLOG-2312099ExploitThird Party Advisory
FAQ
What is CVE-2022-25760?
CVE-2022-25760 is a vulnerability with a CVSS score of 7.1 (HIGH). 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 th...
How severe is CVE-2022-25760?
CVE-2022-25760 has been rated HIGH with a CVSS base score of 7.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-25760?
Check the references section above for vendor advisories and patch information. Affected products include: Accesslog Project Accesslog.