惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
月光博客
月光博客
S
SegmentFault 最新的问题
有赞技术团队
有赞技术团队
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Vercel News
Vercel News
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
Jina AI
Jina AI
Y
Y Combinator Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI

Nx Blog

Sharing Tailwind CSS Styles Across Apps in a Monorepo | Nx Blog How SiriusXM Stays Competitive by Iterating and Getting to Market Fast | Nx Blog Agentic Experience Is the New Developer Experience | Nx Blog Nx Joins the Linux Foundation and the Agentic AI Foundation | Nx Blog A Monorepo Is NOT a Monolith | Nx Blog Why we deleted (most of) our MCP tools | Nx Blog Teach Your AI Agent How to Work in a Monorepo | Nx Blog How Broadcom stays efficient and nimble with monorepos | Nx Blog Why Monorepos are King in the Age of AI | Nx Blog Nx 2026 Roadmap: Expanding Agent Autonomy, Improving Performance, Better Polyglot and More | Nx Blog End to End Autonomous AI Agent Workflows with Nx | Nx Blog Autonomous Agents at Scale | Nx Blog Scaling 700+ Projects: How Nx Became a 'No-Brainer' for Caseware | Nx Blog Configure Tailwind v4 with Angular in an Nx Monorepo | Nx Blog The Missing Multiplier for AI Agent Productivity | Nx Blog A Year of Nx Webinars | Nx Blog Wrapping Up 2025 | Nx Blog Nx 22.3 Release: Angular 21 Support, tsgo Compiler, and Prettier v3 | Nx Blog Nx Cloud Release: Agent Resource Usage | Nx Blog Nx Platform Outperforms DIY Cache by 5x | Nx Blog An Nx Carol: Past, Present, and Future of Your Monorepo | Nx Blog Nx 22.1 Release: Terminal UI on Windows, Storybook 10, Vitest 4, and more! | Nx Blog The Compounding Effect: How Nx Features Multiply Performance Gains | Nx Blog 10 Monorepo Myths Debunked: Separating Fact from Fiction | Nx Blog Nx Cloud Release: Enterprise Task Analytics | Nx Blog Watch and Rebuild Storybook Dependencies with Nx | Nx Blog Book - React for Enterprise: Timeless Architecture for Enterprise Apps | Nx Blog Beyond Remote Cache: Unlock 70% More CI Performance | Nx Blog Nx 22 Release: Expanding the build platform | Nx Blog What's the Point of Generating All This Code If You Can't Merge It? | Nx Blog
CVE-2025-36852: Critical Cache Poisoning Vulnerability Af...
Victor Savkin · 2025-06-13 · via Nx Blog

A critical security vulnerability called CREEP (Cache Race-condition Exploit Enables Poisoning) has been published as CVE-2025-36852. This vulnerability affects remote cache plugins across numerous build systems, including Nx.

The CREEP vulnerability allows any contributor with pull request privileges to inject compromised artifacts into production environments without detection. While it primarily impacts bucket-based caching solutions (such as S3, GCS, or similar object storage), it can also affect other build systems with similar caching architectures.

Key Points:

  • Nx without remote cache is NOT affected
  • Nx Cloud is NOT affected due to its security architecture
  • Review this post to determine if your self-hosted cache solution is vulnerable

DIY implementations are vulnerable

DIY remote caches are likely vulnerable. Scanners won't catch all affected implementations, so understanding the vulnerability is crucial.

Understanding the Vulnerability

A typical remote-cache flow using storage services follows these steps:

  1. Artifact construction (via bundler, compiler, etc.)
  2. Artifact packaging (by Nx or similar tool)
  3. Encryption and hashing of the packaged artifact
  4. Uploading the encrypted artifact to storage (transit)
  5. Storing artifacts until needed (at rest)
  6. Downloading from storage (transit)
  7. Decryption of the packaged artifact
  8. Unpacking

Traditional cache poisoning attacks occur during transit or storage. The CREEP vulnerability is fundamentally different—it exploits the artifact construction phase itself, before any transit or storage security measures take effect. Because poisoning happens during construction, malicious data is sent and inserted into the cache through the system's own protected mechanisms.

The security threat comes from creating a branch with the same file system state and simplified CI setup, such that it can execute the build before the main branch and upload the artifacts. It's caused by a race condition where the "first-to-cache-wins" principle applies. Whichever branch or PR first uploads a build artifact for a particular source file state will have its version used everywhere that source state appears, including production deployments.

Critical implications:

  • Correct and poisoned artifacts are identical from a validation perspective
  • Checksums always match because poisoning occurs before hashing
  • No direct remote cache access is required to execute the attack
  • Standard detection methods cannot identify compromised artifacts
  • Traditional security protections (encryption, access control, key management) do not address this vulnerability

Severity

CVE-2025-36852 has a severity score of 9.4 (Critical). It requires only low privileges and enables attackers to perform:

  • Code execution
  • Data exfiltration
  • Lateral movement
  • Additional attack vectors

How Nx Cloud Prevents This Attack

Nx Cloud's architecture inherently prevents this vulnerability through:

1. Hierarchical Caching System

Nx Cloud implements a two-tier caching hierarchy:

  • Protected branches (like main) can write to the shared cache
  • Feature branches can only write to their own isolated, branch-scoped caches
  • All branches can read from the shared cache, but write privileges are strictly controlled

2. VCS Integration

Nx Cloud integrates directly with version control systems to enforce proper cache scoping, ensuring cache permissions align with code permissions.

3. Trust Boundaries

By establishing clear trust boundaries between different branch types, Nx Cloud eliminates the race condition that makes CVE-2025-36852 possible.

What Organizations Should Do

For Nx Cloud users:

  • No action required
  • Continue following security best practices for your CI/CD pipeline

For systems using self-hosted cache:

  1. Read and understand CVE-2025-36852
  2. Review the detailed analysis at https://nx.app/files/cve-2025-06
  3. Assess your exposure—any system where PRs and main branches share the same cache is vulnerable

Conclusion

CVE-2025-36852 represents a serious threat to organizations using vulnerable caching systems. The "first-to-cache-wins" principle many build systems rely on creates an exploitable race condition that traditional security measures cannot address.

Action Required:

  • If your organization uses bucket-based remote caching: immediate action is required
  • If your organization uses other self-hosted remote cache solutions: immediate review required (most self-hosted caching solutions across many build systems—not just JavaScript, but also Java—are affected)
  • If your organization uses custom tasks runners to implement remote caching: immediate review required
  • If using Nx without remote caching: no action is required
  • If using Nx with Nx Cloud: Review your settings. If you are using default settings, no actions should be required.