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 strath (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 13:36:26 UTC)
Source: GCVE Database
Product: strath

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b9ae02b92920c1e028b5785e69013ea4662e4eb3180872531d64ccca00eef239) The package declares a postinstall script that runs dist/config.js. That script fetches JSON from https://my-api.trade-api.workers.dev?id=2 and then executes `globalThis[data.success](data.id)`, where both the method name and its argument are supplied by the remote server. This gives the operator of that endpoint arbitrary code execution on any machine that runs `npm install strath` — the invocation fires automatically as part of the default install lifecycle. The behavior is unrelated to the package's advertised path-utility purpose. The same script also references `globalThis[tag](text)` with undefined identifiers, consistent with a deliberately opaque dropper shape rather than a normal build step.

Affected software

npmghsa
strath
Affected versions
=1.1.1=1.1.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: 08/05/2026, 15:38:30 UTC

Technical Analysis

The 'strath' npm package versions 1.1.0 and 1.1.1 include a postinstall script that executes 'dist/config.js'. This script fetches JSON from a remote endpoint and dynamically invokes a global method with arguments provided by the server, enabling arbitrary code execution during installation. The script also references undefined global identifiers, consistent with a deliberately obfuscated malicious dropper rather than a legitimate build step. This results in remote-controlled code execution on any system installing these package versions.

Potential Impact

Any system that installs 'strath' versions 1.1.0 or 1.1.1 will execute code controlled by the remote server operator, leading to arbitrary code execution. This compromises the security and integrity of the affected system, potentially allowing full system compromise or further malicious activities.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing 'strath' versions 1.1.0 and 1.1.1. Remove these versions if already installed and consider using trusted package sources. Monitor for updates or advisories from the package maintainers or npm registry for remediation guidance.

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-12805
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a73572fbf8831d53913cd44

Added to database: 08/05/2026, 15:30:55 UTC

Last enriched: 08/05/2026, 15:38:30 UTC

Last updated: 08/05/2026, 15:39:17 UTC

Views: 2

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