CVE-2020-8192: Fastify Denial of Service Vulnerability
MODERATECVE-2020-8192 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Fastify libraries in the npm ecosystem. The issue involves denial of service in fastify. Remediation is available by upgrading affected packages to version 2.15.1.
CVE-2020-8192 at a Glance
How to Fix CVE-2020-8192
To remediate this vulnerability, upgrade all affected Fastify dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install fastify@2.15.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls fastify
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-8192, inspect your project dependencies using npm:
npm ls fastify
Analyze the terminal output to locate any version of Fastify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.15.1), your application is affected.
Note: The npm ls fastify command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Fastify, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-8192 Affected Fastify Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fastify
|
npm |
< 2.15.1
|
2.15.1
|
References
Frequently Asked Questions
What is CVE-2020-8192?
Which Fastify versions are affected?
What version fixes CVE-2020-8192?
Is fastify affected?
What CWE is associated with CVE-2020-8192?
How can I check npm dependencies for CVE-2020-8192?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xw5p-hw6r-2j98",
"modified" : "2020-08-03T21:25:40Z",
"published" : "2020-08-05T14:53:22Z",
"aliases" : [ "CVE-2020-8192" ],
"summary" : "Denial of service in fastify",
"details" : "A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows a malicious user to trigger resource exhaustion (when the allErrors option is used) with specially crafted schemas.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "fastify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.15.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8192"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/commit/74c3157ca90c3ffed9e4434f63c2017471ec970e"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/903521"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-03T21:25:40Z",
"nvd_published_at" : null
}
}