CVE-2019-5448: Yarn Missing Encryption Of Sensitive Data Vulnerability
HIGHCVE-2019-5448 is a HIGH (CVSS 8.1) missing encryption of sensitive data vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Yarn libraries in the npm ecosystem. The issue involves missing encryption of sensitive data in yarn. Remediation is available by upgrading affected packages to version 1.17.3.
CVE-2019-5448 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-5448
To remediate this vulnerability, upgrade all affected Yarn 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 yarn@1.17.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls yarn
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-5448, inspect your project dependencies using npm:
npm ls yarn
Analyze the terminal output to locate any version of Yarn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.17.3), your application is affected.
Note: The npm ls yarn 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-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Yarn, 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-2019-5448 Affected Yarn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yarn
|
npm |
< 1.17.3
|
1.17.3
|
References
Frequently Asked Questions
What is CVE-2019-5448?
Which Yarn versions are affected?
What version fixes CVE-2019-5448?
Is yarn affected?
What is the CVSS score of CVE-2019-5448?
What CWE is associated with CVE-2019-5448?
How can I check npm dependencies for CVE-2019-5448?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wqfc-cr59-h64p",
"modified" : "2021-08-17T19:40:44Z",
"published" : "2019-07-31T04:22:15Z",
"aliases" : [ "CVE-2019-5448" ],
"summary" : "Missing Encryption of Sensitive Data in yarn",
"details" : "Yarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing unencrypted authentication data to be sent over the network.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "yarn"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.17.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-5448"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/640904"
}, {
"type" : "WEB",
"url" : "https://github.com/ChALkeR/notes/blob/master/Yarn-vuln.md"
}, {
"type" : "WEB",
"url" : "https://yarnpkg.com/blog/2019/07/12/recommended-security-update"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-311", "CWE-319" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-07-31T03:41:57Z",
"nvd_published_at" : "2019-07-30T21:15:00Z"
}
}