GHSA-mg85-8mv5-ffjr: Ammo Denial of Service Vulnerability

HIGH
Published
Advisory Summary

GHSA-mg85-8mv5-ffjr is a HIGH denial of service vulnerability (General Security Weakness) affecting Ammo libraries in the npm ecosystem. The issue involves denial of service in ammo. Remediation is available in the latest vendor maintenance releases.

GHSA-mg85-8mv5-ffjr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mg85-8mv5-ffjr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Ammo
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-mg85-8mv5-ffjr

To remediate this vulnerability, upgrade all affected Ammo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ammo fixed: Latest secure release
npm install ammo@Latest secure release
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 ammo

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-mg85-8mv5-ffjr, inspect your project dependencies using npm:

npm ls ammo

Analyze the terminal output to locate any version of Ammo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls ammo 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 General Security Weakness. In Ammo, 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

All versions of `ammo` are vulnerable to Denial of Service. The Range HTTP header parser has a vulnerability which will cause the function to throw a system error if the header is set to an invalid value. Because hapi is not expecting the function to ever throw, the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services. ## Recommendation This package is deprecated and is now maintained as `@hapi/ammo`. Please update your dependencies to use `@hapi/ammo`.

GHSA-mg85-8mv5-ffjr Affected Ammo Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ammo
npm
≥ 0.0.0

References

Frequently Asked Questions

What is GHSA-mg85-8mv5-ffjr?
GHSA-mg85-8mv5-ffjr is a security vulnerability in Ammo involving Denial of Service in ammo under General Security Weakness.
Which Ammo versions are affected?
Affected versions include releases prior to current release patches across affected packages: ammo.
What version fixes GHSA-mg85-8mv5-ffjr?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ammo affected?
Yes, ammo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-mg85-8mv5-ffjr?
GHSA-mg85-8mv5-ffjr is classified under General Security Weakness.
How can I check npm dependencies for GHSA-mg85-8mv5-ffjr?
Run the dependency tree command: 'npm ls ammo'. 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-mg85-8mv5-ffjr",
  "modified" : "2020-08-31T19:00:33Z",
  "published" : "2020-09-03T15:45:40Z",
  "aliases" : [ ],
  "summary" : "Denial of Service in ammo",
  "details" : "All versions of `ammo` are vulnerable to Denial of Service. The Range HTTP header parser has a vulnerability which will cause the function to throw a system error if the header is set to an invalid value. Because hapi is not expecting the function to ever throw, the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services.\n\n\n## Recommendation\n\nThis package is deprecated and is now maintained as `@hapi/ammo`. Please update your dependencies to use `@hapi/ammo`. ",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ammo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1472"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T19:00:33Z",
    "nvd_published_at" : null
  }
}