Summary
Togoder Security scanned the npm package magic-string@0.30.21 on Oct 6, 2026. An AI review of 3 source files produced no findings. No malicious behavior, install-time payloads, credential theft or exfiltration were identified.
Findings
No findings. The reviewer saw nothing malicious or risky in this version.
Files reviewed
| File | Verdict | What the reviewer saw |
|---|---|---|
| dist/magic-string.cjs.js | safe | No malicious patterns detected; the file is a standard build artifact of the magic-string string manipulation library with no network, credential, process, or dynamic code execution activity. |
| dist/magic-string.es.mjs | safe | The code is the legitimate magic-string library with no malicious patterns, network calls, credential harvesting, or dynamic code execution. |
| dist/magic-string.umd.js | safe | No malicious patterns detected; the code is a legitimate implementation of the magic-string library for JavaScript string manipulation and source map generation. |
Affected version ranges
None of the 3 scanned versions of magic-string are flagged high or critical. The latest scanned version, 1.4.2, is clean. Only versions we have scanned are listed; unscanned versions between them are not covered.
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of magic-string
Frequently asked questions
Is magic-string safe to use?
Our AI source review of magic-string@0.30.21 found no malicious code: no install-time payloads, credential theft, exfiltration, obfuscated loaders or backdoors.
Does magic-string contain malware?
No malware was identified in magic-string@0.30.21 when Togoder Security scanned it on Oct 6, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was magic-string checked?
Togoder Security downloaded the published npm package and had an AI model read its 3 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan magic-string together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in magic-string@0.30.21, cost nothing.