Vulnerabilities in pkg:npm/prebid.js

PACKAGE
Advisory Identifier: GHSA-jwq7-6j4r-2f92
Advisory Summary

CVE-2025-59038 is a HIGH prebid.js npm package briefly compromised vulnerability (CWE-506: Embedded Malicious Code) affecting Prebid.js libraries in the npm ecosystem. The issue involves prebid.js npm package briefly compromised. Remediation is available by upgrading affected packages to version 10.10.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/prebid.js

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-jwq7-6j4r-2f92 CVE-2025-59038 HIGH Prebid.js NPM package briefly compromised

CVE-2025-59038 at a Glance

CVE Identifier CVE-2025-59038
GHSA Identifier GHSA-jwq7-6j4r-2f92
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Prebid.js
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-59038

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

prebid.js fixed: 10.10.0
npm install prebid.js@10.10.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 prebid.js

How to Check if You Are Affected

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

npm ls prebid.js

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

Note: The npm ls prebid.js 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-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Prebid.js, 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 NPM users of prebid 10.9.2. The malicious code attempts to redirect crypto transactions on the site to the attackers' wallet. ### Patches 10.10.0 is solved ### References https://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack

CVE-2025-59038 Affected Prebid.js Versions

1 component(s)
Fixed Versions:
10.10.0
Product / Package Ecosystem Affected Versions Fixed Version
prebid.js
npm
≥ 10.9.2
< 10.10.0
All 1 versions
10.9.2
10.10.0

References

Frequently Asked Questions

What is CVE-2025-59038?
CVE-2025-59038 is a security vulnerability in Prebid.js involving Prebid.js NPM package briefly compromised under CWE-506: Embedded Malicious Code.
Which Prebid.js versions are affected?
Affected versions include releases prior to 10.10.0 across affected packages: prebid.js.
What version fixes CVE-2025-59038?
Upgrading to 10.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prebid.js affected?
Yes, prebid.js is affected in releases prior to 10.10.0. Upgrade your dependency to 10.10.0 or later.
What CWE is associated with CVE-2025-59038?
CVE-2025-59038 is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check npm dependencies for CVE-2025-59038?
Run the dependency tree command: 'npm ls prebid.js'. 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-jwq7-6j4r-2f92",
  "modified" : "2025-09-11T14:22:40Z",
  "published" : "2025-09-11T14:22:40Z",
  "aliases" : [ "CVE-2025-59038" ],
  "summary" : "Prebid.js NPM package briefly compromised",
  "details" : "### Impact\nNPM users of prebid 10.9.2. The malicious code attempts to redirect crypto transactions on the site to the attackers' wallet.\n\n### Patches\n10.10.0 is solved\n\n### References\nhttps://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "prebid.js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.9.2"
      }, {
        "fixed" : "10.10.0"
      } ]
    } ],
    "versions" : [ "10.9.2" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/prebid/Prebid.js/security/advisories/GHSA-jwq7-6j4r-2f92"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59038"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/prebid/Prebid.js/commit/72c7f184028f51ba15cdac744d56590b0f2b1f1e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/prebid/Prebid.js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/prebid/Prebid.js/releases/tag/10.10.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.sonatype.com/blog/npm-chalk-and-debug-packages-hit-in-software-supply-chain-attack"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-11T14:22:40Z",
    "nvd_published_at" : "2025-09-09T23:15:37Z"
  }
}