CVE-2025-57325: Rollbar Rollbar Vulnerable To Prototype Pollution Vulnerability

LOW
Advisory Identifier: GHSA-r8c2-2qwq-94p6
CWE-1321
Published
Advisory Summary

CVE-2025-57325 is a LOW rollbar vulnerable to prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Rollbar libraries in the npm ecosystem. The issue involves rollbar vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 2.26.5, 3.0.0-beta5.

CVE-2025-57325 at a Glance

CVE Identifier CVE-2025-57325
GHSA Identifier GHSA-r8c2-2qwq-94p6
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Rollbar
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-57325

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

rollbar fixed: 2.26.5
npm install rollbar@2.26.5
rollbar fixed: 3.0.0-beta5
npm install rollbar@3.0.0-beta5
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 rollbar

How to Check if You Are Affected

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

npm ls rollbar

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

Note: The npm ls rollbar 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 Rollbar, 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 Prototype pollution potential with the utility function `rollbar/src/utility`.`set()`. No impact when using the published public interface. If application code directly imports `set` from `rollbar/src/utility` and then calls `set` with untrusted input in the second argument, it is vulnerable to prototype pollution. POC: ```js const obj = {}; require("rollbar/src/utility").set(obj, "__proto__.polluted", "vulnerable"); console.log({}.polluted !== undefined ? '[POLLUTION_TRIGGERED]':''); ``` ### Patches Fixed in version 2.26.5 and 3.0.0-beta5. ### Workarounds If application code directly imports `set` from `rollbar/src/utility`, ensure that the second argument does not receive untrusted input. ### References https://github.com/rollbar/rollbar.js/issues/1333#issuecomment-3353720946

CVE-2025-57325 Affected Rollbar Versions

2 component(s)
Fixed Versions:
2.26.53.0.0-beta5
Product / Package Ecosystem Affected Versions Fixed Version
rollbar
npm
< 2.26.5
2.26.5
rollbar
npm
≥ 3.0.0-alpha1
< 3.0.0-beta5
3.0.0-beta5

References

Frequently Asked Questions

What is CVE-2025-57325?
CVE-2025-57325 is a security vulnerability in Rollbar involving rollbar vulnerable to prototype pollution under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Rollbar versions are affected?
Affected versions include releases prior to 2.26.5, 3.0.0-beta5 across affected packages: rollbar.
What version fixes CVE-2025-57325?
Upgrading to 2.26.5, 3.0.0-beta5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rollbar affected?
Yes, rollbar is affected in releases prior to 2.26.5, 3.0.0-beta5. Upgrade your dependency to 2.26.5, 3.0.0-beta5 or later.
What CWE is associated with CVE-2025-57325?
CVE-2025-57325 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-57325?
Run the dependency tree command: 'npm ls rollbar'. 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-r8c2-2qwq-94p6",
  "modified" : "2025-10-20T15:33:02Z",
  "published" : "2025-10-20T15:33:02Z",
  "aliases" : [ "CVE-2025-57325" ],
  "summary" : "rollbar vulnerable to prototype pollution",
  "details" : "### Impact\n\nPrototype pollution potential with the utility function `rollbar/src/utility`.`set()`. No impact when using the published public interface.\n\nIf application code directly imports `set` from `rollbar/src/utility` and then calls `set` with untrusted input in the second argument, it is vulnerable to prototype pollution.\n\nPOC:\n\n```js\nconst obj = {};\nrequire(\"rollbar/src/utility\").set(obj, \"__proto__.polluted\", \"vulnerable\");\nconsole.log({}.polluted !== undefined ? '[POLLUTION_TRIGGERED]':'');\n```\n\n### Patches\n\nFixed in version 2.26.5 and 3.0.0-beta5.\n\n### Workarounds\n\nIf application code directly imports `set` from `rollbar/src/utility`, ensure that the second argument does not receive untrusted input.\n\n### References\n\nhttps://github.com/rollbar/rollbar.js/issues/1333#issuecomment-3353720946",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rollbar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.26.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.26.4"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rollbar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-alpha1"
      }, {
        "fixed" : "3.0.0-beta5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.0-beta4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rollbar/rollbar.js/security/advisories/GHSA-r8c2-2qwq-94p6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57325"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rollbar/rollbar.js/issues/1333"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rollbar/rollbar.js/commit/d717def8b68f4a947975d0aebb729869cdb2d343"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VulnSageAgent/PoCs/blob/main/JavaScript/prototype-pollution/rollbar%402.26.4/index.js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57325"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rollbar/rollbar.js"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-20T15:33:02Z",
    "nvd_published_at" : null
  }
}