Vulnerabilities in pkg:npm/spmrc

PACKAGE
Advisory Identifier: GHSA-r2rv-8pp3-65xw
Advisory Summary

CVE-2025-57327 is a LOW spmrc vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Spmrc libraries in the npm ecosystem. The issue involves spmrc vulnerable to prototype pollution. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/spmrc

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-r2rv-8pp3-65xw CVE-2025-57327 LOW spmrc vulnerable to prototype pollution

CVE-2025-57327 at a Glance

CVE Identifier CVE-2025-57327
GHSA Identifier GHSA-r2rv-8pp3-65xw
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Spmrc
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-57327

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

spmrc fixed: Latest secure release
npm install spmrc@Latest secure release
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 spmrc

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-57327, inspect your project dependencies using npm:

npm ls spmrc

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

Note: The npm ls spmrc 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Spmrc, 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

spmrc is a package that provides the rc manager for spm. A Prototype Pollution vulnerability in the set and config function of spmrc version 1.2.0 and before allows attackers to inject properties on Object.prototype via supplying a crafted payload, causing denial of service (DoS) as the minimum consequence.

CVE-2025-57327 Affected Spmrc Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
spmrc
npm
≤ 1.2.0

References

Frequently Asked Questions

What is CVE-2025-57327?
CVE-2025-57327 is a security vulnerability in Spmrc involving spmrc vulnerable to prototype pollution under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Spmrc versions are affected?
Affected versions include releases prior to current release patches across affected packages: spmrc.
What version fixes CVE-2025-57327?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is spmrc affected?
Yes, spmrc is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-57327?
CVE-2025-57327 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2025-57327?
Run the dependency tree command: 'npm ls spmrc'. 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-r2rv-8pp3-65xw",
  "modified" : "2025-09-26T12:55:16Z",
  "published" : "2025-09-24T21:30:37Z",
  "aliases" : [ "CVE-2025-57327" ],
  "summary" : "spmrc vulnerable to prototype pollution",
  "details" : "spmrc is a package that provides the rc manager for spm. A Prototype Pollution vulnerability in the set and config function of spmrc version 1.2.0 and before allows attackers to inject properties on Object.prototype via supplying a crafted payload, causing denial of service (DoS) as the minimum consequence.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "spmrc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57327"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VulnSageAgent/PoCs/blob/main/JavaScript/prototype-pollution/spmrc%401.2.0/index.js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57327"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spmjs/spmrc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-26T12:55:16Z",
    "nvd_published_at" : "2025-09-24T20:15:32Z"
  }
}