GHSA-j95h-wmx9-4279: Sails Denial of Service Vulnerability

HIGH
Published
Advisory Summary

GHSA-j95h-wmx9-4279 is a HIGH denial of service vulnerability (General Security Weakness) affecting Sails libraries in the npm ecosystem. The issue involves denial of service. Remediation is available by upgrading affected packages to version 0.12.0.

GHSA-j95h-wmx9-4279 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j95h-wmx9-4279
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Sails
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-j95h-wmx9-4279

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

sails fixed: 0.12.0
npm install sails@0.12.0
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 sails

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-j95h-wmx9-4279, inspect your project dependencies using npm:

npm ls sails

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

Note: The npm ls sails 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 Sails, 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

**Withdrawn:** Duplicate of GHSA-j95h-wmx9-4279. Affected versions of the package are vulnerable to a Denial of Service attack sending an OPTIONS request for an undefined route.

GHSA-j95h-wmx9-4279 Affected Sails Versions

1 component(s)
Fixed Versions:
0.12.0
Product / Package Ecosystem Affected Versions Fixed Version
sails
npm
< 0.12.0
0.12.0

References

Frequently Asked Questions

What is GHSA-j95h-wmx9-4279?
GHSA-j95h-wmx9-4279 is a security vulnerability in Sails involving Denial of Service under General Security Weakness.
Which Sails versions are affected?
Affected versions include releases prior to 0.12.0 across affected packages: sails.
What version fixes GHSA-j95h-wmx9-4279?
Upgrading to 0.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sails affected?
Yes, sails is affected in releases prior to 0.12.0. Upgrade your dependency to 0.12.0 or later.
What CWE is associated with GHSA-j95h-wmx9-4279?
GHSA-j95h-wmx9-4279 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-j95h-wmx9-4279?
Run the dependency tree command: 'npm ls sails'. 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-j95h-wmx9-4279",
  "modified" : "2021-02-25T17:15:39Z",
  "published" : "2021-02-25T17:15:39Z",
  "withdrawn" : "2021-02-25T17:15:39Z",
  "aliases" : [ ],
  "summary" : "Denial of Service",
  "details" : "\n**Withdrawn:** Duplicate of GHSA-j95h-wmx9-4279.\n\nAffected versions of the package are vulnerable to a Denial of Service attack sending an OPTIONS request for an undefined route.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sails"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/balderdashy/sails/commit/252b7b8c68d393acdde597c8b187945c629e4f6a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-20T15:37:33Z",
    "nvd_published_at" : null
  }
}