Vulnerabilities in pkg:npm/aegir

PACKAGE
Advisory Identifier: GHSA-qfcv-5whw-7pcw
Advisory Summary

CVE-2020-11059 is a CRITICAL (CVSS 9.6) exposure of sensitive information to vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Aegir libraries in the npm ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in aegir. Remediation is available by upgrading affected packages to version 21.10.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/aegir

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/aegir. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qfcv-5whw-7pcw CVE-2020-11059 CRITICAL Exposure of Sensitive Information to an Unauthorized Actor in AEgir
GHSA-6xhf-x49c-m5m6 CVE-2017-16225 HIGH Github Token Leak in aegir

CVE-2020-11059 at a Glance

CVE Identifier CVE-2020-11059
GHSA Identifier GHSA-qfcv-5whw-7pcw
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Aegir
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

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:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2020-11059

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: 21.10.1
npm install aegir@21.10.1
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-2020-11059, 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 21.10.1), 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

### Impact `aegir publish` and `aegir build` may leak secrets from environmental variables in the browser bundle published to npm. ### Patches The code has been patched, users should upgrade to >= 21.10.1 ### Workarounds Run `printenv` to check your environment variables and revoke any secrets. ### For more information If you have any questions or comments about this advisory: * Open an issue in [aegir](https://github.com/ipfs/aegir)

CVE-2020-11059 Affected Aegir Versions

1 component(s)
Fixed Versions:
21.10.1
Product / Package Ecosystem Affected Versions Fixed Version
aegir
npm
≥ 21.7.0
< 21.10.1
21.10.1

References

Frequently Asked Questions

What is CVE-2020-11059?
CVE-2020-11059 is a security vulnerability in Aegir involving Exposure of Sensitive Information to an Unauthorized Actor in AEgir under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Aegir versions are affected?
Affected versions include releases prior to 21.10.1 across affected packages: aegir.
What version fixes CVE-2020-11059?
Upgrading to 21.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aegir affected?
Yes, aegir is affected in releases prior to 21.10.1. Upgrade your dependency to 21.10.1 or later.
What is the CVSS score of CVE-2020-11059?
CVE-2020-11059 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2020-11059?
CVE-2020-11059 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-2020-11059?
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-qfcv-5whw-7pcw",
  "modified" : "2021-10-08T19:56:28Z",
  "published" : "2020-05-27T21:09:15Z",
  "aliases" : [ "CVE-2020-11059" ],
  "summary" : "Exposure of Sensitive Information to an Unauthorized Actor in AEgir",
  "details" : "### Impact\n`aegir publish` and `aegir build` may leak secrets from environmental variables in the browser bundle published to npm.\n\n### Patches\nThe code has been patched, users should upgrade to >= 21.10.1\n\n### Workarounds\nRun `printenv` to check your environment variables and revoke any secrets.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [aegir](https://github.com/ipfs/aegir)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "aegir"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "21.7.0"
      }, {
        "fixed" : "21.10.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ipfs/aegir/security/advisories/GHSA-qfcv-5whw-7pcw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11059"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ipfs/aegir/commit/e36e1def57b2dc1e4b7a5beba964c5924e87f8d8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ipfs/aegir"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-05-27T21:08:38Z",
    "nvd_published_at" : "2020-05-27T21:15:00Z"
  }
}