CYBERSECURITYTRACKER
TRACKING6,877 stories in this site build1,441 vulnerability news stories in this site build
Permanent story citation

GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk

This page keeps the story as Cybersecurity Tracker first published it. If the tracker later corrects it, the correction appears below the original and never replaces it.

Back to newsStory 7567

As cited

Copy frozen at (site build).

cloud saas

GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk

GitHub introduced cache-mode, a new setting for GitHub Actions that restricts how workflows and jobs can access the shared Actions cache to mitigate cache poisoning attacks. The feature supports four values (read, write, write-only, and none) that can be set at the workflow or job level, with enforcement at the cache service and inheritance through reusable workflows. The setting addresses attacks like the 2024 Ultralytics compromise and May 2026 TanStack incident, where attackers wrote malicious artifacts to shared caches that trusted workflows later restored and executed.

Why it matters: Teams using GitHub Actions should configure cache-mode to enforce least-privilege access, especially for untrusted events like pull requests and artificial intelligence (AI) agent workflows, to prevent cache poisoning attacks that can execute malicious code with the workflow's permissions and secrets.

VendorsGitHub
Source published
First seen by Cybersecurity Tracker

Source attribution

Glossary