Vulnerabilities in pkg:npm/prebid.js
PACKAGECVE-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.
pkg:npm/prebid.js
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
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.
npm install prebid.js@10.10.0
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
CVE-2025-59038 Affected Prebid.js Versions
1 component(s)| 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?
Which Prebid.js versions are affected?
What version fixes CVE-2025-59038?
Is prebid.js affected?
What CWE is associated with CVE-2025-59038?
How can I check npm dependencies for CVE-2025-59038?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}