Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Input Validation vulnerabilities in an interactive lesson.
Start learningUpgrade url-js
to version 2.1.0 or higher.
url-js is a Simple URL parser, similar to DOM URL
Affected versions of this package are vulnerable to Improper Input Validation due to improper parsing, which makes it is possible for the hostname to be spoofed.
http://\\\\\\\\localhost
and http://localhost
are the same URL. However, the hostname is not parsed as localhost, and the backslash is reflected as it is.
Running the following command:
node -e "const URLJS = require('url-js');console.log(URLJS('http://\\\\localhost'))"
Will result in the following output:
URLJS {
protocol: 'http:',
username: '',
password: '',
hostname: '\\localhost',
port: '',
pathname: '/',
search: '',
query: '',
hash: ''
}