CVE-2022-25760
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-25760 affects all versions of the accesslog package, which is a simple common/combined access log middleware. The vulnerability was disclosed on December 8, 2021, and published on February 27, 2022. This security issue involves Arbitrary Code Injection due to improper input sanitization in the package's format option (Snyk).

Technical details

The vulnerability stems from the unsafe usage of the Function constructor without proper input sanitization. When attacker-controlled user input is provided to the format option of the package's exported constructor function, it enables arbitrary JavaScript code execution on the host running the package. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) from NVD and 7.1 (HIGH) from Snyk (NVD, Snyk).

Impact

The successful exploitation of this vulnerability can lead to a complete compromise of system confidentiality and integrity. An attacker can execute arbitrary JavaScript code on the host system where the package is running, potentially leading to total loss of confidentiality and integrity of the affected system (Snyk).

Mitigation and workarounds

Currently, there is no fixed version available for the accesslog package. Users should consider using alternative logging middleware solutions or implementing additional security controls to prevent unauthorized input to the format option (Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management