Vulnerabilities in pkg:npm/pitboss-ng

PACKAGE
Advisory Summary

GHSA-3gpc-w23c-w59w is a CRITICAL sandbox breakout / arbitrary code vulnerability (General Security Weakness) affecting Pitboss ng libraries in the npm ecosystem. The issue involves sandbox breakout / arbitrary code execution in pitboss-ng. Remediation is available by upgrading affected packages to version 2.0.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/pitboss-ng

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-3gpc-w23c-w59w - CRITICAL Sandbox Breakout / Arbitrary Code Execution in pitboss-ng

GHSA-3gpc-w23c-w59w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3gpc-w23c-w59w
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Pitboss ng
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-3gpc-w23c-w59w

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

pitboss-ng fixed: 2.0.0
npm install pitboss-ng@2.0.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 pitboss-ng

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-3gpc-w23c-w59w, inspect your project dependencies using npm:

npm ls pitboss-ng

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

Note: The npm ls pitboss-ng 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 Pitboss ng, 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 `pitboss-ng` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

GHSA-3gpc-w23c-w59w Affected Pitboss ng Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
pitboss-ng
npm
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is GHSA-3gpc-w23c-w59w?
GHSA-3gpc-w23c-w59w is a security vulnerability in Pitboss ng involving Sandbox Breakout / Arbitrary Code Execution in pitboss-ng under General Security Weakness.
Which Pitboss ng versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: pitboss-ng.
What version fixes GHSA-3gpc-w23c-w59w?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pitboss-ng affected?
Yes, pitboss-ng is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with GHSA-3gpc-w23c-w59w?
GHSA-3gpc-w23c-w59w is classified under General Security Weakness.
How can I check npm dependencies for GHSA-3gpc-w23c-w59w?
Run the dependency tree command: 'npm ls pitboss-ng'. 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-3gpc-w23c-w59w",
  "modified" : "2021-04-21T19:45:42Z",
  "published" : "2020-09-04T15:02:06Z",
  "aliases" : [ ],
  "summary" : "Sandbox Breakout / Arbitrary Code Execution in pitboss-ng",
  "details" : "All versions of `pitboss-ng` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through `this.constructor.constructor` . This may allow attackers to execute arbitrary code in the system. Evaluating the payload `this.constructor.constructor('return process.env')()` prints the contents of `process.env`.\n  \n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "pitboss-ng"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1319"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:55:00Z",
    "nvd_published_at" : null
  }
}