Advisory

MAL-2026-18184

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in formatting-subtitles (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (947d74b456114e4caca402883ca016d51419b0a1e23781855b705741f52f6ffe)
The package publishes as formatting-subtitles but its README, bin entry, and sole dependency identify as unicode-title-normalizer, a facade used to lure installs. The tarball ships x.js, a JavaScript/shell polyglot: when read as JavaScript it prints a hello message, but when executed by sh the /**... */ header is interpreted as shell containing command substitutions that beacon to https://webhook.site/9e8c8742-3102-4716-aa8b-e150e9e84fe7/stats_1 and curl https://api.github.com/gists/da04f14c93acbe9a7aef827be0a2e91c, piping the gist body through jq into a file and executing it with sh. package.json declares a preinstall hook sh./prepare.js && exit 0; prepare.js is not shipped so the current tarball fails open, but x.js is listed in files and matches the exact sh <file> invocation shape, leaving the dropper one filename change (or a manual sh x.js) away from live execution. The gist body is attacker-mutable, allowing arbitrary code to be delivered to any host that executes x.js via sh, and the webhook endpoint acts as an install beacon.

Severity

Not rated by the source.

Dates

Published
2026-10-22 06:11 UTC
Modified
2026-11-13 04:30 UTC

Affected packages and fixes

formatting-subtitles

npm · All systems

Affected

  • Versions: 1.0.1, 1.0.2

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences