CVE-2022-21192
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-21192 affects all versions of the serve-lite package, which is a lightweight HTTP server for static file-based web development. The vulnerability was discovered by Liran Tal and disclosed on November 28, 2022. The issue was published in the National Vulnerability Database on January 24, 2023. This vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) (Snyk).

Technical details

The vulnerability is classified as a Directory Traversal (CWE-22) due to missing input sanitization on the req.url parameter that is passed directly to path.join(). The vulnerability exists in the server's request handling code where the URL is decoded and processed without proper validation. The attack vector is network-accessible with low attack complexity, requiring no privileges or user interaction (GitHub POC).

Impact

When successfully exploited, this vulnerability allows attackers to access files and directories stored outside the intended folder through path traversal techniques. This can result in unauthorized access to sensitive files and potential exposure of critical system information (Snyk).

Exploitability

The vulnerability is easily exploitable through HTTP requests using path traversal sequences. A proof of concept exploit has been published demonstrating how an attacker can access files outside the static directory using curl commands with specially crafted paths (GitHub POC).

Mitigation and workarounds

The vulnerability has been fixed in serve-lite version 1.1.1. Users should upgrade to this version or higher to address the security issue. The fix was implemented through a patching commit in the serve-lite repository (GitHub POC).

Community reactions

The researcher noted that the package had "virtually zero downloads, so no considerable impact." The maintainer acknowledged the vulnerability report and promptly released a fix (GitHub POC).

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-2026-71476HIGH8.7
  • JavaScript logoJavaScript
  • @nx/gcs-cache
NoYesAug 06, 2026
CVE-2026-71437MEDIUM6.5
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026
CVE-2026-71439MEDIUM5.3
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026
CVE-2026-71498MEDIUM5.1
  • JavaScript logoJavaScript
  • re2
NoYesAug 06, 2026
CVE-2026-71438LOW2.4
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026

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