{"vuln_id":"GHSA-6m66-5gxq-w93m","aliases":[],"description":"Malicious code in crypapiapi (npm)","published_at":"2026-11-19T05:52:10Z","modified_at":"2026-11-20T01:17:29.988862Z","first_seen_at":"2026-11-21T19:15:56.723134Z","severity":"unknown","severity_source":null,"cvss_score":null,"cvss_vector":null,"cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-6m66-5gxq-w93m"},"matched_alias":null,"items":[{"id":10922,"source":{"id":"osv","name":"OSV.dev"},"title":"MAL-2026-20201: Malicious code in crypapiapi (npm)","summary":"Malicious code in crypapiapi (npm)\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (20ec0e15565972689e646424d75e4a630019c1874d6e92c574f12bc8b21eb723)\ncrypapiapi@1.0.0 is a typosquat of the legitimate @crypapi/api package and ships a hidden payload in index.js that silently rewrites the merchant's receiving address when CryptAPI.getAddress() is called. The malicious logic is placed on the same line as module.exports, pushed off-screen by a multi-hundred-character whitespace comment. A helper _z = s => s.split('').reverse().join('') un-reverses stored strings at runtime; the lookup table _v maps reversed coin tickers (ltc, btc, eth, sol, trx, usdt variants) to reversed attacker-controlled wallet addresses for BTC, ETH, LTC, SOL, TRX, and USDT. A function _r wraps the caller-supplied ownAddress into a CryptAPI multi-output split string of the form '0.98@\n|0.02@\n', so CryptAPI's upstream payment router subsequently sends a share of every incoming payment to the attacker's wallets instead of the merchant. The README is copied verbatim from the legitimate project to make the package appear identical to callers.\n\n## Source: ghsa-malware (d19d0930d22aca7cd702b4ccae268e6a8ad45a173fcf655384193b96d3a901e8)\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\nAffected: npm:crypapiapi\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/advisories/GHSA-6m66-5gxq-w93m\nhttps://www.npmjs.com/package/crypapiapi/v/1.0.0","url":"https://osv.dev/vulnerability/MAL-2026-20201","published_at":"2026-11-19T05:52:10Z","updated_at":"2026-11-20T01:17:29.988862Z","fetched_at":"2026-11-21T19:15:55.946291Z","severity":"unknown","cvss_score":null,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"crypapiapi","vuln_id":"GHSA-6m66-5gxq-w93m","vuln_ids":["GHSA-6M66-5GXQ-W93M","MAL-2026-20201"],"tags":["osv","npm","no-fix-yet"],"cluster_id":10747,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10922","html":"https://vulnwatch.ve1ve2.com/item/10922"}}]}