GHSA-cvfm-xjc8-f2vm: @commercial/subtext Denial of Service Vulnerability

HIGH
Published
Advisory Summary

GHSA-cvfm-xjc8-f2vm is a HIGH denial of service vulnerability (General Security Weakness) affecting @commercial/subtext libraries in the npm ecosystem. The issue involves denial of service in @commercial/subtext. Remediation is available by upgrading affected packages to version 5.1.2.

GHSA-cvfm-xjc8-f2vm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cvfm-xjc8-f2vm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product @commercial/subtext
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-cvfm-xjc8-f2vm

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

@commercial/subtext fixed: 5.1.2
npm install @commercial/subtext@5.1.2
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 @commercial/subtext

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-cvfm-xjc8-f2vm, inspect your project dependencies using npm:

npm ls @commercial/subtext

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

Note: The npm ls @commercial/subtext 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 @commercial/subtext, 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

Version 5.1.1 of `@commercial/subtext` is vulnerable to Denial of Service. The Content-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), 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 Upgrade to version 5.1.2 or later.

GHSA-cvfm-xjc8-f2vm Affected @commercial/subtext Versions

1 component(s)
Fixed Versions:
5.1.2
Product / Package Ecosystem Affected Versions Fixed Version
@commercial/subtext
npm
≥ 5.1.1
< 5.1.2
All 1 versions
5.1.1
5.1.2

References

Frequently Asked Questions

What is GHSA-cvfm-xjc8-f2vm?
GHSA-cvfm-xjc8-f2vm is a security vulnerability in @commercial/subtext involving Denial of Service in @commercial/subtext under General Security Weakness.
Which @commercial/subtext versions are affected?
Affected versions include releases prior to 5.1.2 across affected packages: @commercial/subtext.
What version fixes GHSA-cvfm-xjc8-f2vm?
Upgrading to 5.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @commercial/subtext affected?
Yes, @commercial/subtext is affected in releases prior to 5.1.2. Upgrade your dependency to 5.1.2 or later.
What CWE is associated with GHSA-cvfm-xjc8-f2vm?
GHSA-cvfm-xjc8-f2vm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-cvfm-xjc8-f2vm?
Run the dependency tree command: 'npm ls @commercial/subtext'. 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-cvfm-xjc8-f2vm",
  "modified" : "2020-08-31T19:00:44Z",
  "published" : "2020-09-03T15:46:36Z",
  "aliases" : [ ],
  "summary" : "Denial of Service in @commercial/subtext",
  "details" : "Version 5.1.1 of `@commercial/subtext` is vulnerable to Denial of Service. The Content-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), 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\nUpgrade to version 5.1.2 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@commercial/subtext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.1.1"
      }, {
        "fixed" : "5.1.2"
      } ]
    } ],
    "versions" : [ "5.1.1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1477"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T19:00:44Z",
    "nvd_published_at" : null
  }
}