CVE-2026-45321: CWE-506: Embedded Malicious Code in @tanstack arktype-adapter
CVE-2026-45321 is a critical vulnerability involving the publication of malicious versions in the @tanstack arktype-adapter npm package. On May 11, 2026, an attacker exploited a chain of vulnerabilities in GitHub Actions workflows and token handling to publish credential-stealing malware under a trusted identity. The attack affected 84 malicious versions across 42 @tanstack packages, including versions 1. 166. 12 and 1. 166. 15 of arktype-adapter. The vulnerability involves embedded malicious code (CWE-506) and has a CVSS score of 9. 6, indicating high impact on confidentiality, integrity, and availability. No official patch or remediation guidance has been provided yet.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-45321) arises from a sophisticated attack chain exploiting a pull_request_target misconfiguration, GitHub Actions cache poisoning, and runtime memory extraction of the OIDC token. These combined weaknesses allowed an attacker to publish malicious versions of @tanstack packages, including arktype-adapter versions 1.166.12 and 1.166.15, to the npm registry under a legitimate trusted publisher identity. The malicious code embedded in these packages is designed to steal credentials. The attack leverages the trusted GitHub Actions OIDC binding without modifying the publish workflow itself. The CVSS 3.1 score of 9.6 reflects critical severity with network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and high impact on confidentiality, integrity, and availability.
Potential Impact
The impact is critical as the malicious package versions can compromise user credentials, potentially leading to unauthorized access and further compromise of systems relying on these packages. The integrity of the npm packages is undermined due to the trusted identity used to publish the malware. This affects all users who installed the affected versions 1.166.12 and 1.166.15 of the arktype-adapter package. No known exploits in the wild have been reported yet, but the potential for credential theft and subsequent attacks is significant.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid using the affected versions 1.166.12 and 1.166.15 of the @tanstack arktype-adapter package. Consider reverting to earlier known-good versions or monitoring for vendor updates. Review your supply chain security practices, especially around GitHub Actions workflows and OIDC token handling, to prevent similar attacks. No vendor advisory or official patch information is currently available.
CVE-2026-45321: CWE-506: Embedded Malicious Code in @tanstack arktype-adapter
Description
CVE-2026-45321 is a critical vulnerability involving the publication of malicious versions in the @tanstack arktype-adapter npm package. On May 11, 2026, an attacker exploited a chain of vulnerabilities in GitHub Actions workflows and token handling to publish credential-stealing malware under a trusted identity. The attack affected 84 malicious versions across 42 @tanstack packages, including versions 1. 166. 12 and 1. 166. 15 of arktype-adapter. The vulnerability involves embedded malicious code (CWE-506) and has a CVSS score of 9. 6, indicating high impact on confidentiality, integrity, and availability. No official patch or remediation guidance has been provided yet.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-45321) arises from a sophisticated attack chain exploiting a pull_request_target misconfiguration, GitHub Actions cache poisoning, and runtime memory extraction of the OIDC token. These combined weaknesses allowed an attacker to publish malicious versions of @tanstack packages, including arktype-adapter versions 1.166.12 and 1.166.15, to the npm registry under a legitimate trusted publisher identity. The malicious code embedded in these packages is designed to steal credentials. The attack leverages the trusted GitHub Actions OIDC binding without modifying the publish workflow itself. The CVSS 3.1 score of 9.6 reflects critical severity with network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and high impact on confidentiality, integrity, and availability.
Potential Impact
The impact is critical as the malicious package versions can compromise user credentials, potentially leading to unauthorized access and further compromise of systems relying on these packages. The integrity of the npm packages is undermined due to the trusted identity used to publish the malware. This affects all users who installed the affected versions 1.166.12 and 1.166.15 of the arktype-adapter package. No known exploits in the wild have been reported yet, but the potential for credential theft and subsequent attacks is significant.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid using the affected versions 1.166.12 and 1.166.15 of the @tanstack arktype-adapter package. Consider reverting to earlier known-good versions or monitoring for vendor updates. Review your supply chain security practices, especially around GitHub Actions workflows and OIDC token handling, to prevent similar attacks. No vendor advisory or official patch information is currently available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-11T20:50:30.539Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028743cbff5d86108b505d
Added to database: 5/12/2026, 1:49:55 AM
Last enriched: 5/12/2026, 1:51:08 AM
Last updated: 5/12/2026, 3:27:42 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.