{"id":"MAL-2026-13210","revision":"b573104883d84ce1a9f8fc102b41921a","records":[{"revision":"b573104883d84ce1a9f8fc102b41921a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13210","aliases":[],"title":"Malicious code in @ohos-ports/codex (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (516484e6fdd2f0f358d0973e15a4443ab6555c9eca3770e51a13ee3f5196b266)\nThe package's package.json declares its dependency \"@openai/codex\" as a direct tarball URL: https://gitcode.com/api/v5/repos/OpenHarmonyPCDeveloper/JavaScript_Package_For_HarmonyOS/raw/packages/openai-codex-0.140.0.tgz?ref=main. The reference is mutable (branch 'main', no commit SHA, no integrity hash) and is hosted by a third-party org (OpenHarmonyPCDeveloper on gitcode.com) that is not the @openai publisher. On npm install, this tarball is fetched and placed into the installer's node_modules under the well-known @openai/codex name, so any code that resolves '@openai/codex' — including this package's own bin wrapper (`await import('@openai/codex/bin/codex.js')`) — loads content controlled by that third-party org rather than OpenAI. Because resolution happens through the dependencies field rather than a lifecycle script, `npm install --ignore-scripts` does not mitigate. The mutable branch reference means the content served at that URL can change at any time without a package republish.\n","state":0,"publishedAt":"2026-08-05T15:55:39+00:00","modifiedAt":"2026-08-05T16:50:17.1336466+00:00","affected":[{"ecosystem":"npm","name":"@ohos-ports/codex","ranges":[],"versions":["0.140.0-beta.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@ohos-ports/codex/v/0.140.0-beta.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13210","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13210","identifiers":["MAL-2026-13210"]},"retained":false,"historicalAffected":[]}],"coverage":[]}