Malicious code in @depup/astro (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13622
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c7c6330072ae71974da0dd2e0e72a33334a35b78ec5679536d95b9f205032225) This package is published under the @depup scope but sets author to 'withastro' and repository to github.com/withastro/astro, framing itself as a routine dependency-bump of the upstream astro framework. Its package.json systematically replaces well-known astro dependencies with same-shape lookalike names controlled by different maintainers, including picocolors→piccolore (^0.1.3), debug→obug (^2.1.4), and @astrojs/markdown-remark→@astrojs/markdown-satteri (0.3.5), alongside other atypical names such as tinyclip, am-i-vibing, and fontace. The shipped source has been mass-rewritten to import from the lookalikes (e.g., `import colors from "piccolore"` in place of picocolors), so a normal `npm install` and subsequent build resolves and executes code from those lookalike packages rather than the genuine upstream dependencies. The advertised version numbers (astro 7.2.0, vite 8, esbuild 0.28, zod 4) do not correspond to real upstream releases, and README keywords like 'security', 'latest', and 'patched' are used to normalize the substitutions as a maintenance update.
- Source published
- 7 Aug 2026 17:24:21 UTC
- Source modified
- 7 Aug 2026 18:05:10 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.