CVE-2020-13410: Aedes Improper Exception Handling Vulnerability
HIGHCVE-2020-13410 is a HIGH (CVSS 7.5) improper exception handling vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Aedes libraries in the npm ecosystem. The issue involves improper exception handling in aedes. Remediation is available by upgrading affected packages to version 0.42.1.
CVE-2020-13410 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-13410
To remediate this vulnerability, upgrade all affected Aedes 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 aedes@0.42.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aedes
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-13410, inspect your project dependencies using npm:
npm ls aedes
Analyze the terminal output to locate any version of Aedes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.42.1), your application is affected.
Note: The npm ls aedes 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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Aedes, 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-13410 Affected Aedes Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aedes
|
npm |
< 0.42.1
|
0.42.1
|
References
Frequently Asked Questions
What is CVE-2020-13410?
Which Aedes versions are affected?
What version fixes CVE-2020-13410?
Is aedes affected?
What is the CVSS score of CVE-2020-13410?
What CWE is associated with CVE-2020-13410?
How can I check npm dependencies for CVE-2020-13410?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gh78-48h3-frjq",
"modified" : "2022-07-11T19:22:01Z",
"published" : "2021-05-06T18:10:46Z",
"aliases" : [ "CVE-2020-13410" ],
"summary" : "Improper exception handling in Aedes",
"details" : "An issue was discovered in MoscaJS Aedes 0.42.0 and fixed in 0.42.1. lib/write.js does not properly consider exceptions during the writing of an invalid packet to a stream. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aedes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.42.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-13410"
}, {
"type" : "WEB",
"url" : "https://github.com/moscajs/aedes/pull/493"
}, {
"type" : "WEB",
"url" : "https://github.com/moscajs/aedes/commit/8d34ee5819cfc983d57e49b45d8c5ef70a76d79b"
}, {
"type" : "WEB",
"url" : "https://payatu.com/advisory/dos-in-aedes-mqtt-broker"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-755" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-05T20:02:28Z",
"nvd_published_at" : "2020-08-26T15:15:00Z"
}
}