Vulnerabilities in pkg:npm/phin

PACKAGE
Advisory Summary

GHSA-x565-32qp-m3vf is a MODERATE (CVSS 4.3) phin may include sensitive headers vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Phin libraries in the npm ecosystem. The issue involves phin may include sensitive headers in subsequent requests after redirect. Remediation is available by upgrading affected packages to version 3.7.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/phin

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-x565-32qp-m3vf - MODERATE phin may include sensitive headers in subsequent requests after redirect

GHSA-x565-32qp-m3vf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x565-32qp-m3vf
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Phin
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:R/S:U/C:L/I:N/A:N).

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

How to Fix GHSA-x565-32qp-m3vf

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

phin fixed: 3.7.1
npm install phin@3.7.1
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 phin

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-x565-32qp-m3vf, inspect your project dependencies using npm:

npm ls phin

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

Note: The npm ls phin 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Phin, 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

### Impact Users may be impacted if sending requests including sensitive data in specific headers with `followRedirects` enabled. ### Patches The [follow-redirects](https://github.com/follow-redirects/follow-redirects) library is now being used for redirects and removes some headers that may contain sensitive information in some situations. ### Workarounds N/A. Please update to resolve the issue.

GHSA-x565-32qp-m3vf Affected Phin Versions

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

References

Frequently Asked Questions

What is GHSA-x565-32qp-m3vf?
GHSA-x565-32qp-m3vf is a security vulnerability in Phin involving phin may include sensitive headers in subsequent requests after redirect under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Phin versions are affected?
Affected versions include releases prior to 3.7.1 across affected packages: phin.
What version fixes GHSA-x565-32qp-m3vf?
Upgrading to 3.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phin affected?
Yes, phin is affected in releases prior to 3.7.1. Upgrade your dependency to 3.7.1 or later.
What is the CVSS score of GHSA-x565-32qp-m3vf?
GHSA-x565-32qp-m3vf has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-x565-32qp-m3vf?
GHSA-x565-32qp-m3vf is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for GHSA-x565-32qp-m3vf?
Run the dependency tree command: 'npm ls phin'. 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-x565-32qp-m3vf",
  "modified" : "2024-04-11T21:30:31Z",
  "published" : "2024-04-11T21:30:30Z",
  "aliases" : [ ],
  "summary" : "phin may include sensitive headers in subsequent requests after redirect",
  "details" : "### Impact\n\nUsers may be impacted if sending requests including sensitive data in specific headers with `followRedirects` enabled.\n\n### Patches\n\nThe [follow-redirects](https://github.com/follow-redirects/follow-redirects) library is now being used for redirects and removes some headers that may contain sensitive information in some situations.\n\n### Workarounds\n\nN/A. Please update to resolve the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "phin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ethanent/phin/security/advisories/GHSA-x565-32qp-m3vf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ethanent/phin/commit/c071f95336a987dad9332fd388adeb249925cc57"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ethanent/phin"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-11T21:30:30Z",
    "nvd_published_at" : null
  }
}