Vulnerabilities in pkg:npm/algo-httpserv

PACKAGE
Advisory Summary

GHSA-cgjv-rghq-qhgp is a HIGH (CVSS 8.6) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Algo httpserv libraries in the npm ecosystem. The issue involves path traversal in algo-httpserv. Remediation is available by upgrading affected packages to version 1.1.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/algo-httpserv

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-cgjv-rghq-qhgp - HIGH Path Traversal in algo-httpserv

GHSA-cgjv-rghq-qhgp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-cgjv-rghq-qhgp
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Algo httpserv
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix GHSA-cgjv-rghq-qhgp

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

algo-httpserv fixed: 1.1.2
npm install algo-httpserv@1.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 algo-httpserv

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-cgjv-rghq-qhgp, inspect your project dependencies using npm:

npm ls algo-httpserv

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

Note: The npm ls algo-httpserv 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 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Algo httpserv, 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

Versions of `algo-httpserv` prior to 1.1.2 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths. ## Recommendation Upgrade to version 1.1.2 or later.

GHSA-cgjv-rghq-qhgp Affected Algo httpserv Versions

1 component(s)
Fixed Versions:
1.1.2
Product / Package Ecosystem Affected Versions Fixed Version
algo-httpserv
npm
< 1.1.2
1.1.2

References

Frequently Asked Questions

What is GHSA-cgjv-rghq-qhgp?
GHSA-cgjv-rghq-qhgp is a security vulnerability in Algo httpserv involving Path Traversal in algo-httpserv under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Algo httpserv versions are affected?
Affected versions include releases prior to 1.1.2 across affected packages: algo-httpserv.
What version fixes GHSA-cgjv-rghq-qhgp?
Upgrading to 1.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is algo-httpserv affected?
Yes, algo-httpserv is affected in releases prior to 1.1.2. Upgrade your dependency to 1.1.2 or later.
What is the CVSS score of GHSA-cgjv-rghq-qhgp?
GHSA-cgjv-rghq-qhgp has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with GHSA-cgjv-rghq-qhgp?
GHSA-cgjv-rghq-qhgp is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for GHSA-cgjv-rghq-qhgp?
Run the dependency tree command: 'npm ls algo-httpserv'. 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-cgjv-rghq-qhgp",
  "modified" : "2021-08-17T22:22:48Z",
  "published" : "2019-09-11T23:00:57Z",
  "aliases" : [ ],
  "summary" : "Path Traversal in algo-httpserv",
  "details" : "Versions of `algo-httpserv` prior to 1.1.2 are vulnerable to Path Traversal.  Due to insufficient input sanitization, attackers can access server files by using relative paths. \n\n\n## Recommendation\n\nUpgrade to version 1.1.2 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "algo-httpserv"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AlgoRythm-Dylan/httpserv/commit/bcfe9d4316c2b59aab3a64a38905376026888735"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-ALGOHTTPSERV-174741"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/889"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-09-03T23:12:19Z",
    "nvd_published_at" : null
  }
}