cvelo
P2 · HighMalware

Malicious code in corsair-nav (npm)

  • GHSA-9x36-qvvj-qc6v

Description

corsair-nav@99.9.9 declares a `preinstall` lifecycle script that runs canary.js on `npm install`. The script checks for specific filesystem paths (/flag.txt, /flag, /app/flag.txt) using fs.existsSync/fs.readFileSync and then issues an http.request to http://65.108.241.149:8080/canary with the probe outcome and a package marker as query data. The destination is a hardcoded bare IP reached over plain HTTP, unrelated to any registry or declared publisher infrastructure, and the transmission is unconditional and not caller-configurable. index.js is an empty stub, so the install-time filesystem probe and outbound beacon are the package's entire behavior. The result is unconsented host reconnaissance: installing the package confirms host reachability, file presence, and file contents to the operator of that endpoint. The implausibly high version number (99.9.9) is consistent with a resolution-winning placeholder rather than a real release line. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9a14e23a0b57b1c151fa047a30bea4f9a06a9901/osv/malicious/npm/corsair-nav/MAL-2026-20957.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • corsair-navnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.