Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in swift-parse-stream (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 16:37:42 UTC)
Source: GCVE Database
Product: swift-parse-stream

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8ab8561c6c561b045d817d4fab3aa0754ce7cd767a3c5ec07b95151dda6b92c8) swift-parse-stream advertises itself as an SVG sanitizer/minifier but ships an undocumented `getPlugin` export in index.js that, when invoked, performs an HTTP GET against https://www.jsonkeeper.com/b/3P9BF (an anonymous user-paste host) and runs `eval(parsed.model)` on the returned JSON's `model` field. The destination is attacker-controlled and mutable: whoever controls the paste can change the executed JavaScript at any time without republishing the package. The README does not mention this code path. Any caller — typically a second compromised package chaining into this one — that reaches `getPlugin()` hands arbitrary remote code execution to the paste's owner, running in the consumer application's process with its full privileges and access to its environment, filesystem, and network. ## Source: ghsa-malware (026b5362bac218ef01a452bd1c22598c75fad3bc2d2157ffc16dd5214fcc9152) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
swift-parse-stream
Affected versions
=1.0.2=1.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/11/2026, 12:34:41 UTC

Technical Analysis

The swift-parse-stream npm package (versions 1.0.0 and 1.0.2) advertises itself as an SVG sanitizer/minifier but includes an undocumented getPlugin export. Invoking getPlugin triggers an HTTP GET request to a mutable, attacker-controlled paste URL, retrieving JSON containing a model field whose content is executed via eval. This design allows the attacker to remotely execute arbitrary JavaScript code within the context of the host application, potentially compromising the entire system. The malicious code path is not disclosed in the README, increasing the risk of unnoticed exploitation. The package is considered fully compromised once installed or run.

Potential Impact

Systems with swift-parse-stream versions 1.0.0 or 1.0.2 installed or running are at risk of full compromise due to arbitrary remote code execution. Attackers controlling the external paste URL can execute any code with the application's privileges, potentially accessing environment variables, filesystem, network, and secrets. This can lead to total system compromise, data theft, and persistent backdoors. Immediate rotation of all secrets and keys stored on affected systems is recommended.

Mitigation Recommendations

No official patch or fix is currently available. Users should immediately remove the swift-parse-stream package versions 1.0.0 and 1.0.2 from their environments. Because the package enables arbitrary code execution, any system with it installed should be treated as fully compromised. All secrets and keys on affected systems must be rotated from a trusted, uncompromised machine. Monitor for any suspicious activity and consider rebuilding affected systems to ensure complete remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6068
Osv Schema Version
1.7.4
Aliases
["GHSA-qcr2-hwcg-gf9g"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a42ed2127e9c79719933a53

Added to database: 06/29/2026, 22:09:37 UTC

Last enriched: 07/11/2026, 12:34:41 UTC

Last updated: 07/31/2026, 12:59:37 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses