List Node.js vulnerabilities
Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL).
Lists known npm package vulnerabilities detected on a Node.js website, enriched with
advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from
the most severe to the least severe, then by publish date (newest first). Use the
severities query parameter to filter.
Vulnerabilities with is_patchable set to true can be auto-fixed via the
Patch Node.js Vulnerabilities endpoint, which opens a GitHub pull request with
updated package versions. Auto-fix is only available for websites deployed from a
connected GitHub repository. Vulnerabilities with is_patching_in_progress set to
true are already included in an open patch pull request; while any patch pull
request is open, new patch requests for this website are rejected until it is merged
or closed.
Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
API Token authentication
u123456789Domain name
mydomain.tldSuccess response
Name of the affected npm package
lodashVersion of the package currently installed
4.17.0Whether the package is a direct dependency
trueWhether the vulnerability can be auto-patched without a major version bump
trueVersion that fixes the vulnerability, if known
4.17.21Unique vulnerability identifier (e.g. GHSA or CVE)
GHSA-jf85-cpcp-j695Severity level of the vulnerability
highPossible values: Short human-readable title of the vulnerability
Prototype Pollution in lodashDetailed description of the vulnerability
Versions of lodash prior to 4.17.11 are vulnerable to prototype pollution.CVSS base score (0.0-10.0)
9.8CVE identifier, if available
CVE-2019-10744CWE identifier describing the weakness type
CWE-1321URL to the vulnerability advisory
https://github.com/advisories/GHSA-jf85-cpcp-j695Date the vulnerability was published, in ISO 8601 format
2019-07-26T00:00:00ZWhether this vulnerability is included in a currently open patch pull request
falseUnauthenticated response
Error response
GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"package_name": "lodash",
"installed_version": "4.17.0",
"is_direct": true,
"is_patchable": true,
"fix_version": "4.17.21",
"vulnerability_id": "GHSA-jf85-cpcp-j695",
"severity": "high",
"title": "Prototype Pollution in lodash",
"description": "Versions of lodash prior to 4.17.11 are vulnerable to prototype pollution.",
"cvss_score": 9.8,
"cve": "CVE-2019-10744",
"cwe": "CWE-1321",
"url": "https://github.com/advisories/GHSA-jf85-cpcp-j695",
"published_at": "2019-07-26T00:00:00Z",
"is_patching_in_progress": false
}
]Last updated
Was this helpful?