Vulnerability DatabaseGHSA-224h-p7p5-rh85

GHSA-224h-p7p5-rh85: 
JavaScript vulnerability analysis and mitigation

Overview

The wenluhong1 npm package contains a directory traversal vulnerability (GHSA-224h-p7p5-rh85) that affects all versions (>= 0.0.0). The vulnerability was discovered by Liang Gong, disclosed on May 9, 2017, and published to the GitHub Advisory Database on September 1, 2020. The issue stems from the package's handling of relative file paths, which can allow unauthorized access to files outside the intended directory root (GitHub Advisory, Snyk Report).

Technical details

The vulnerability is classified as high severity with a CVSS score of 7.5. The CVSS metrics indicate network attack vector, low attack complexity, no privileges required, no user interaction needed, unchanged scope, high confidentiality impact, and no impact on integrity or availability. The vulnerability is tracked as CWE-22. A simple example of exploitation involves sending a request like 'GET /../../../../../../../../../../etc/passwd HTTP/1.1 host:foo' to access sensitive system files (GitHub Advisory).

Impact

The vulnerability allows attackers to access files outside of the intended directory root, potentially leading to the disclosure of sensitive files and data on the vulnerable system. This can result in unauthorized access to private system files, configuration data, and other critical information stored on the server (GitHub Advisory, Snyk Report).

Exploitability

The vulnerability is easily exploitable with no special privileges or user interaction required. Proof-of-concept code is publicly available, and Snyk has confirmed the existence of detailed exploitation instructions. The attack can be executed remotely over the network, making it particularly dangerous (Snyk Report).

Mitigation and workarounds

No patch is available for this vulnerability. The recommended mitigation is to use the package only for local development purposes. If the functionality is needed in a production environment, it is advised to switch to a different, secure package (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vqxq-2wvm-wwq5MEDIUM6.1
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-cw38-r4mr-qh2vMEDIUM6.1
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-hx39-7p87-p6mvMEDIUM4.7
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-43vv-qp67-mww8MEDIUM4.7
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 2026
GHSA-6r92-h7v8-c87rLOW2
  • JavaScript logoJavaScript
  • unhead
NoYesNov 23, 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

Additional Wiz resources

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