CVE-2022-25760: All versions of package accesslog are vulnerable to Arbitrary Code Injection due to the usage of the Function
CVE-2022-25760 is a high-severity flaw (CVSS 7.1) affecting accesslog. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.6% (top 24%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2022-03-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-25760?
accesslog: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-25760 being exploited?
CVE-2022-25760 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-25760 affect?
CVE-2022-25760 affects accesslog. Severity is high (CVSS 7.1). 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 exporte
How urgent is CVE-2022-25760?
Priority 49/100. High severity; Public exploit reference