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 @onescience/onecode (npm)

0
Critical
Published: 07/16/2026 (07/16/2026, 18:41:22 UTC)
Source: GCVE Database
Product: @onescience/onecode

Description

The npm package @onescience/onecode contains malicious code in its postinstall hook that downloads and executes an arbitrary binary from a hardcoded IP address without TLS certificate verification or integrity checks. This allows an attacker controlling the remote host or a network attacker to execute arbitrary code on the installer's machine. The package mimics another unrelated project and uses misleading naming conventions. Multiple specific versions of @onescience/onecode 1.14.50-202607161038 through 1.14.50-202608061753 are affected.

Affected software

npmghsa
@onescience/onecode
Affected versions
=1.14.50-202607161038=1.14.50-202607161710=1.14.50-202607161139=1.14.50-202607231111=1.14.50-202608041043=1.14.50-202607171833=1.14.50-202608041614=1.14.50-202607270920=1.14.50-202607271545=1.14.50-202607281814=1.14.50-202608031812=1.14.50-202607271808=1.14.50-202607281613=1.14.50-202607291705=1.14.50-202607301758=1.14.50-202607200911=1.14.50-202607231354=1.14.50-202607221649=1.14.50-202608061753=1.14.50-202607281527=1.14.50-202607311732=1.14.50-202607281758=1.14.50-202607311756=1.14.50-202607171841=1.14.50-202607301600=1.14.50-202607310907=1.14.50-202608010827=1.14.50-202608041653=1.14.50-202607291116=1.14.50-202607240916=1.14.50-202607230908=1.14.50-202607201741=1.14.50-202607161642=1.14.50-202608041828=1.14.50-202608041416=1.14.50-202607281737=1.14.50-202608051418=1.14.50-202607231515=1.14.50-202607220956=1.14.50-202607271456=1.14.50-202608031514=1.14.50-202607311449=1.14.50-202607291417=1.14.50-202607281928=1.14.50-202607231344=1.14.50-202607281838=1.14.50-202608061459=1.14.50-202608041802=1.14.50-202608051826=1.14.50-202608041724=1.14.50-202607291013

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/06/2026, 18:41:27 UTC

Technical Analysis

The @onescience/onecode npm package's postinstall hook runs a function that downloads a tarball from a hardcoded bare IPv4 address over HTTPS with TLS verification disabled (rejectUnauthorized: false). The tarball is extracted and an executable is installed and invoked. No hash or signature verification is performed on the downloaded artifact. The download source is not a publisher-owned domain but a bare IP on a non-standard port, enabling arbitrary code execution if the remote host or network is compromised. The package name and launcher mimic an unrelated project 'opencode', using environment variables and asset directories referencing 'opencode' while retrieving payloads from an unrelated IP endpoint. This behavior constitutes a supply chain malicious package threat.

Potential Impact

Any user installing affected versions of @onescience/onecode will execute arbitrary code controlled by the attacker hosting the payload. This can lead to full compromise of the installer's environment. The lack of TLS certificate verification and absence of artifact integrity checks allow man-in-the-middle or remote host compromise to inject malicious payloads. The threat affects all users of the specified versions of the package.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing the affected versions of @onescience/onecode listed. Verify package authenticity before installation and consider using package integrity verification tools. Monitor for updates from the package publisher or npm advisories for official fixes. Since no patch information is available, patch status is not yet confirmed — check the vendor advisory for current 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-10717
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a74cf8ebf8831d5391aea81

Added to database: 08/06/2026, 18:16:46 UTC

Last enriched: 08/06/2026, 18:41:27 UTC

Last updated: 08/06/2026, 21:21:35 UTC

Views: 4

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