mal-2026-10185
Vulnerability from ossf_malicious_packages
Published
2026-07-11 00:07
Modified
2026-07-12 21:21
Summary
Malicious code in authvaultx (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (c6c707d53e30a333f8b8cf03ac2480eee3e2fa9c3c3164b1a100d333c91f9f3a)

On require() of authvaultx (main: auth.js, which loads lib/writer.js), top-level code attempts to load the separately published npm package 'auth-next-gen'; if not present, it silently shells out to npm install auth-next-gen --loglevel silent and then immediately require()s ../../auth-next-gen/index.js, executing whatever that external package ships. The fetch destination is a separate registry package controlled by the same author space, so the payload can be swapped without republishing authvaultx. lib/writer.js also assembles its user-facing fallback error string via repeated String.fromCharCode() concatenation, obscuring intent from casual review and string scanners. The published package masquerades as a logger (pino banner/logo PNGs, pino-cloned docs/ directory, logger/stream/json keywords) while the README advertises authentication functionality and the actual on-require behavior is a second-stage loader — none of the advertised purposes (logger or auth module) requires fetching and executing another npm package at load time.

Source: ghsa-malware (0fbb555b68c6fa973cbdfe9b7e7e8c752faf3013859c6c9d9d3a2b2dedab256b)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "lib/writer.js",
              "sha256": "aaf7639c8de1d5f07cf15d8178317715d0952830212e995e81ce9c2b7a7cde1a",
              "tlsh": "7531aed78245a278f3706ba10e1fa4c0b282d12121507dc87ffc84d67bab4e04e98fda"
            },
            {
              "path": "package.json",
              "sha256": "6074b7fbfd0b4fc79a88dc74010fb68b4ff20a23ddceb68ba030bad9121b6b87",
              "tlsh": "00014440cd688e6308dc26a28c294247a760ec0b5828bc1d33c7b32c0f5d87f19be22c"
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "authvaultx"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.7.1"
      ]
    }
  ],
  "aliases": [
    "GHSA-frr6-2jc6-6fhr"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "GHSA-frr6-2jc6-6fhr",
        "import_time": "2026-07-11T00:52:22.699601746Z",
        "modified_time": "2026-07-11T00:07:39Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "0fbb555b68c6fa973cbdfe9b7e7e8c752faf3013859c6c9d9d3a2b2dedab256b",
        "source": "ghsa-malware"
      },
      {
        "id": "IN-MAL-2026-009778",
        "import_time": "2026-07-12T21:20:02.04834688Z",
        "modified_time": "2026-07-12T21:14:12Z",
        "sha256": "c6c707d53e30a333f8b8cf03ac2480eee3e2fa9c3c3164b1a100d333c91f9f3a",
        "source": "amazon-inspector",
        "versions": [
          "1.7.1"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c6c707d53e30a333f8b8cf03ac2480eee3e2fa9c3c3164b1a100d333c91f9f3a)\nOn require() of authvaultx (main: auth.js, which loads lib/writer.js), top-level code attempts to load the separately published npm package \u0027auth-next-gen\u0027; if not present, it silently shells out to `npm install auth-next-gen --loglevel silent` and then immediately `require()`s `../../auth-next-gen/index.js`, executing whatever that external package ships. The fetch destination is a separate registry package controlled by the same author space, so the payload can be swapped without republishing authvaultx. lib/writer.js also assembles its user-facing fallback error string via repeated String.fromCharCode() concatenation, obscuring intent from casual review and string scanners. The published package masquerades as a logger (pino banner/logo PNGs, pino-cloned docs/ directory, logger/stream/json keywords) while the README advertises authentication functionality and the actual on-require behavior is a second-stage loader \u2014 none of the advertised purposes (logger or auth module) requires fetching and executing another npm package at load time.\n\n## Source: ghsa-malware (0fbb555b68c6fa973cbdfe9b7e7e8c752faf3013859c6c9d9d3a2b2dedab256b)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n",
  "id": "MAL-2026-10185",
  "modified": "2026-07-12T21:21:44Z",
  "published": "2026-07-11T00:07:32Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-frr6-2jc6-6fhr"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/authvaultx/v/1.7.1"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in authvaultx (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…