CVE-2017-16225: Aegir Github Token Leak Vulnerability

HIGH
Advisory Identifier: GHSA-6xhf-x49c-m5m6
CWE-200
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2017-16225
GHSA Identifier GHSA-6xhf-x49c-m5m6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Aegir
Package Ecosystem npm
Published Date
Last Updated

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.

aegir fixed: 12.0.8
npm install aegir@12.0.8
Verify Direct and Transitive Dependencies

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

Affected versions of `aegir` bundle and publish the current users github token to npm when `aegir-release` is executed. ## Recommendation Update to version 12.0.8 or later. If you used this module to do a release for your project you should invalidate the GitHub tokens that were leaked.

CVE-2017-16225 Affected Aegir Versions

1 component(s)
Fixed Versions:
12.0.8
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?
CVE-2017-16225 is a security vulnerability in Aegir involving Github Token Leak in aegir under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Aegir versions are affected?
Affected versions include releases prior to 12.0.8 across affected packages: aegir.
What version fixes CVE-2017-16225?
Upgrading to 12.0.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aegir affected?
Yes, aegir is affected in releases prior to 12.0.8. Upgrade your dependency to 12.0.8 or later.
What CWE is associated with CVE-2017-16225?
CVE-2017-16225 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2017-16225?
Run the dependency tree command: 'npm ls aegir'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}