{"id":"MAL-2026-6341","revision":null,"records":[{"revision":"3d0cf880de904d4ab30415605e4c9640","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6341","aliases":["GHSA-fphr-9c8m-c35g"],"title":"Malicious code in react-check-error (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d89ef9716015743217a9492f4b4469459da701a1b6198851f1527033f1e5c9ae)\nOn require(), index.js invokes _initMsgCache() at module top level. The function derives an AES-256-CBC key, IV, and ciphertext from a hardcoded 161-byte array (index.js:62) processed through an LCG-derived sbox, decrypts a URL, performs an https.get to that URL, parses the JSON response, and executes the response's `cookie` field via `new Function('require', mod)(require)` (index.js:155). This is a fully attacker-controlled remote code execution payload that runs on every consumer's machine the moment the package is imported, with full `require` access in the Node process. The package additionally impersonates the legitimate chai utility `check-error` — it copies chai's author metadata, description, the chaijs/check-error repository URL, and the original API surface (compatibleInstance, compatibleConstructor, compatibleMessage, getMessage, getConstructorName), with the dropper grafted onto the genuine sources. Unused runtime dependencies (axios, form-data, socket.io-client) are declared as further cover. The URL obfuscation (byte array + sbox XOR + per-index subtraction + bit rotation + AES-256-CBC) exists solely to hide the C2 endpoint from scanners — legitimate packages do not encrypt their network destinations.\n\n## Source: ghsa-malware (6a94fb4ad979c29d1d9bccd7289e92e821fb11a15d3e072d1f62162d321cdae1)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","state":0,"publishedAt":"2026-06-23T20:19:56+00:00","modifiedAt":"2026-07-06T20:01:51.4479932+00:00","affected":[{"ecosystem":"npm","name":"react-check-error","ranges":[],"versions":["2.1.7","2.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/react-check-error/v/2.1.7","https://www.npmjs.com/package/react-check-error/v/2.1.6","https://github.com/advisories/GHSA-fphr-9c8m-c35g"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6341","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6341","identifiers":["MAL-2026-6341","GHSA-fphr-9c8m-c35g"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T17:43:57.6904664+00:00","complete":true,"records":1796,"lastAttemptAt":"2026-11-25T17:43:57.6904664+00:00","lastSuccessAt":"2026-11-25T17:43:57.9313781+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:43:57.9313799+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-26dcdb00d2602a44ce8d084c8b193b9d53ed55198d08552b702ea52d9dabcb8f","complete":true,"records":432275,"lastAttemptAt":"2026-11-25T17:40:24.760451+00:00","lastSuccessAt":"2026-11-25T17:28:48.3656215+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:40:24.760451+00:00","snapshotPublishedAt":"2026-11-25T17:22:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8e9379d7803842f882d9816782c7abae","complete":false,"records":13939,"lastAttemptAt":"2026-11-25T17:49:51.407608+00:00","lastSuccessAt":"2026-11-25T17:49:49.963+00:00","error":"135 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T17:49:49.963+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13833,"expectedIdentifiers":13987,"failedIdentifiers":135},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T17:43:57.6904664+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T17:43:57.6904664+00:00","lastSuccessAt":"2026-11-25T17:43:57.9564658+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:43:57.9564718+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-eb39311d8c62406daf6963e5b356a43d","complete":true,"records":13951,"lastAttemptAt":"2026-11-25T17:43:58.803589+00:00","lastSuccessAt":"2026-11-25T17:31:37.566+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:31:37.566+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13987,"expectedIdentifiers":13987,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T17:43:57.5230026+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:43:57.5230026+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T17:40:25.3082358+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:40:25.3082358+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T17:43:57.6236507+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:43:57.6236507+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-5ded617693934e6d66a4648ff7fe043fbd945ac6dec452f0c353d580602c72db","complete":true,"records":233139,"lastAttemptAt":"2026-11-25T17:43:57.3916655+00:00","lastSuccessAt":"2026-11-25T17:43:56.0280207+00:00","error":null,"lastVerifiedAt":"2026-11-25T17:43:57.3916655+00:00","snapshotPublishedAt":"2026-11-25T17:33:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}