CVE-2025-46653: Formidable Formidable Relies On Hexoid To Vulnerability
LOWCVE-2025-46653 is a LOW (CVSS 3.1) formidable relies on hexoid to vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Formidable libraries in the npm ecosystem. The issue involves formidable relies on hexoid to prevent guessing of filenames for untrusted executable content. Remediation is available by upgrading affected packages to version 3.5.3, 2.1.3.
CVE-2025-46653 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-46653
To remediate this vulnerability, upgrade all affected Formidable 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 formidable@3.5.3
npm install formidable@2.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls formidable
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-46653, inspect your project dependencies using npm:
npm ls formidable
Analyze the terminal output to locate any version of Formidable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.3), your application is affected.
Note: The npm ls formidable 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-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Formidable, 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-46653 Affected Formidable Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
formidable
|
npm |
≥ 3.1.1-canary.20211030
< 3.5.3
|
3.5.3
|
|
formidable
|
npm |
≥ 2.1.0
< 2.1.3
|
2.1.3
|
References
Frequently Asked Questions
What is CVE-2025-46653?
Which Formidable versions are affected?
What version fixes CVE-2025-46653?
Is formidable affected?
What is the CVSS score of CVE-2025-46653?
What CWE is associated with CVE-2025-46653?
How can I check npm dependencies for CVE-2025-46653?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-75v8-2h7p-7m2m",
"modified" : "2025-05-27T18:49:20Z",
"published" : "2025-04-26T21:31:26Z",
"aliases" : [ "CVE-2025-46653" ],
"summary" : "Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content",
"details" : "Formidable (aka node-formidable) 2.x before 2.1.3 and 3.x before 3.5.3 relies on hexoid to prevent guessing of filenames for untrusted executable content; however, hexoid is documented as not \"cryptographically secure.\" (Also, there is a scenario in which only the last two characters of a hexoid string need to be guessed, but this is not often relevant.) NOTE: this does not imply that, in a typical use case, attackers will be able to exploit any hexoid behavior to upload and execute their own content.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "formidable"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.1-canary.20211030"
}, {
"fixed" : "3.5.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "formidable"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-46653"
}, {
"type" : "WEB",
"url" : "https://github.com/node-formidable/formidable/commit/022c2c5577dfe14d2947f10909d81b03b6070bf5"
}, {
"type" : "WEB",
"url" : "https://github.com/node-formidable/formidable/commit/37a3e89fca1ed68ec674a539f13aafd62221ddaa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/node-formidable/formidable"
}, {
"type" : "WEB",
"url" : "https://github.com/node-formidable/formidable/blob/d0fbec13edc8add54a1afb9ce1a8d3db803f8d47/CHANGELOG.md?plain=1#L10"
}, {
"type" : "WEB",
"url" : "https://github.com/zast-ai/vulnerability-reports/blob/main/formidable/file_upload/report.md"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/formidable/v/2.1.3"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/formidable/v/3.5.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-338" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-29T14:07:17Z",
"nvd_published_at" : "2025-04-26T21:15:14Z"
}
}