CVE-2017-16225: Aegir Github Token Leak Vulnerability
HIGHCVE-2017-16225 is a HIGH github token leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Aegir libraries in the npm ecosystem. The issue involves github token leak in aegir. Remediation is available by upgrading affected packages to version 12.0.8.
CVE-2017-16225 at a Glance
How to Fix CVE-2017-16225
To remediate this vulnerability, upgrade all affected Aegir 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 aegir@12.0.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aegir
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2017-16225, inspect your project dependencies using npm:
npm ls aegir
Analyze the terminal output to locate any version of Aegir in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.0.8), your application is affected.
Note: The npm ls aegir 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Aegir, 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-2017-16225 Affected Aegir Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aegir
|
npm |
≥ 12.0.0
< 12.0.8
|
12.0.8
|
References
Frequently Asked Questions
What is CVE-2017-16225?
Which Aegir versions are affected?
What version fixes CVE-2017-16225?
Is aegir affected?
What CWE is associated with CVE-2017-16225?
How can I check npm dependencies for CVE-2017-16225?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6xhf-x49c-m5m6",
"modified" : "2020-08-31T18:27:14Z",
"published" : "2018-07-24T20:04:11Z",
"aliases" : [ "CVE-2017-16225" ],
"summary" : "Github Token Leak in aegir",
"details" : "Affected versions of `aegir` bundle and publish the current users github token to npm when `aegir-release` is executed.\n\n\n## Recommendation\n\nUpdate to version 12.0.8 or later.\n\nIf you used this module to do a release for your project you should invalidate the GitHub tokens that were leaked.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aegir"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0"
}, {
"fixed" : "12.0.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 12.0.7"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-16225"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-6xhf-x49c-m5m6"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/546"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:20:45Z",
"nvd_published_at" : null
}
}