← Blog

CORS Misconfigurations in MCP Skill Registry Skill CI/CD Pipeline Integration and Build Trigger Endpoints

CI/CD pipeline integration endpoints occupy a privileged position in the trust model of a skill registry. They are the bridge between a publisher's source repository and the registry's distribution infrastructure: they store the credentials that connect those two systems, they hold the trigger tokens that initiate new builds, and they control the build layer cache that determines whether incremental publishes succeed in seconds or spin for minutes consuming quota. When CORS controls on these endpoints are misconfigured, the resulting attack surface is not a simple data leak. It is a complete build supply chain compromise: an attacker who reads the CI configuration gets API keys and trigger tokens; who fires the build trigger can publish tampered versions of skills to the marketplace; who reads the build log oracle knows which high-activity targets to strike first; and who purges the layer cache can flood the entire CI queue during the primary attack window. The four SA-SKL-CORS45 patterns describe exactly this compound chain.

By SkillAudit  |  16 Nov 2026  |  20 min read

In this post

  1. Why CI/CD pipeline endpoints are a CORS blind spot
  2. CORS45-001 — Credential-bearing CORS on CI config exposes ANTHROPIC_API_KEY and pipeline trigger tokens
  3. CORS45-002 — Wildcard ACAO on build trigger enables quota exhaustion and tampered-ref injection
  4. CORS45-003 — Timing oracle on CI logs enumerates high-activity skills as CORS45-001 targets
  5. CORS45-004 — Credential-bearing CORS on cache delete floods the CI queue during primary attack
  6. Compound build supply chain attack
  7. Detection with SkillAudit AST queries
  8. Summary and remediation checklist

Why CI/CD pipeline endpoints are a CORS blind spot

When registry developers think through which endpoints require the strictest CORS controls, they focus on operations with direct and visible consequences: skill publication, billing mutations, permission grants, API key creation. CI/CD pipeline management endpoints rarely appear in this priority list. They feel like configuration endpoints — administrative plumbing that connects a repository to the build system. The perceived blast radius of a CORS misconfiguration here is a competitor reading your build schedule or someone triggering an extra build that fails harmlessly.

This model is structurally wrong for three reasons specific to skill registry CI/CD infrastructure. First, pipeline configuration is a secret bundle, not just a configuration document. The CI configuration endpoint returns not only the build steps and branch mappings but also the names of every environment variable injected at build time — which directly names the cloud provider credentials, service account tokens, and third-party API keys the build depends on. Many registries include ANTHROPIC_API_KEY, DOCKER_HUB_TOKEN, and AWS_ACCESS_KEY_ID as named build secrets. Even without the actual secret values, knowing these names tells an attacker exactly which credentials to target in subsequent phases.

Second, pipeline trigger tokens are durable unauthenticated credentials. A trigger token allows any bearer to initiate a CI build without OAuth authentication. These tokens are designed to be embedded in webhook configurations for external CI services — their whole purpose is to work without a user session. When CORS45-001 delivers a trigger token to an attacker, that attacker possesses a credential that persists until the publisher manually rotates it, can be used from any IP or origin without authentication, and enables initiating builds for attacker-controlled commits or branches. The CORS vulnerability is a one-time event; the exfiltrated trigger token is a durable foothold.

Third, CI queue dynamics make cache deletion a force multiplier for cover operations. When a victim org has dozens of skills and each skill's build layer cache is purged simultaneously, every pending build degrades from an incremental cache-hit run to a full cold rebuild. Build times multiply. The CI queue backs up. When the primary attack is executing during this window — publishing a tampered skill, escalating privileges, exfiltrating audit data — the registry's CI and DevOps teams are occupied with a build queue disaster they cannot immediately connect to the concurrent security event.

CORS misconfigurations on CI pipeline endpoints arise through the standard mechanism: a secondary router mounted on top of a broadly-configured CORS middleware instance, inheriting an overly permissive policy that was appropriate for the public API surface but not for the administrative CI configuration surface. The CI pipeline router was added after the core API was in production, by a different team, and it never received an independent security review against the registry's CORS threat model.

SA-SKL-CORS45 findings at a glance
CRITICALCORS45-001 — cors({origin:true,credentials:true}) on GET /api/skills/:id/ci/config; any origin reads full CI configuration including build secrets, environment variable names, and pipeline trigger tokens using victim session
HIGHCORS45-002 — ACAO: * on POST /api/skills/:id/ci/trigger; any page triggers CI builds consuming build minutes quota and injecting attacker-controlled refs, potentially publishing tampered skill versions
MEDIUMCORS45-003 — ACAO origin reflection on GET /api/skills/:id/ci/logs emitted before ownership check; timing oracle reveals CI build log existence across all orgs, enumerating high-activity targets for CORS45-001
CRITICALCORS45-004 — cors({origin:true,credentials:true}) on DELETE /api/skills/:id/ci/cache; any origin purges CI build cache using victim admin session, forcing expensive full rebuilds and flooding the CI queue during primary attack

CORS45-001 — Credential-bearing CORS on CI config exposes ANTHROPIC_API_KEY and pipeline trigger tokens

The CI configuration endpoint at GET /api/skills/:id/ci/config returns the complete pipeline definition stored in the registry for a given skill: the linked repository URL and branch mapping, the build command sequence, the set of environment variable names defined for the build environment, any build secret references that the pipeline injects at build time, and the pipeline trigger tokens — randomly generated strings that allow external services to initiate a build via webhook call without requiring full OAuth authentication. When the endpoint is configured with cors({origin:true,credentials:true}), the browser reflects any attacker-supplied Origin header and includes the user's session cookie in the cross-origin response, granting any page the victim visits full read access to the entire CI configuration document.

The pipeline trigger tokens are the most immediately dangerous component of this exposure. A trigger token is semantically equivalent to an unauthenticated build initiation credential: anyone who possesses one can fire a CI build for the associated skill at any time, from any origin, without further authentication. The token was designed to be embedded in external webhook configurations, so its design intent is specifically to work without a user session present. When CORS45-001 delivers trigger tokens to an attacker, the CORS vulnerability is a one-time event but the attacker gains a durable credential that persists until the publisher manually rotates it. The attacker can initiate builds silently and repeatedly, consuming build minutes quota in the background, or inject attacker-controlled branch references to trigger builds against malicious commits.

The environment variable names exposed by CORS45-001 provide a second-order intelligence yield. Even without the actual secret values — which the registry may store externally in a secrets manager and inject at build time without surfacing them in the config response — knowing the names tells an attacker exactly what credentials the pipeline depends on. A registry that shows ANTHROPIC_API_KEY, DOCKER_HUB_TOKEN, and AWS_ACCESS_KEY_ID in its build environment names has told an attacker the full credential inventory of the build environment. This reconnaissance directly informs which follow-on attacks are most likely to succeed: a targeted credential-stuffing attack against the Docker Hub account, a focused SSRF probe aimed at the AWS IMDS endpoint from within the build environment, or a prompt injection attempt via a dependency that the ANTHROPIC_API_KEY-authenticated build process evaluates.

The build secret references included in the CI configuration are particularly sensitive because they reveal the dependency graph of the build on external secret stores. A config document that lists secretRef: vault://prod/docker-push-credentials alongside secretRef: vault://prod/anthropic-api-key tells an attacker not just what secrets exist but which Vault paths are actively used in production builds and therefore which Vault policies are worth targeting in a separate attack.

CORS45-001 fix: Replace cors({origin:true,credentials:true}) with an explicit allowlist limited to your own frontend origins. Add requireSession middleware before CORS middleware. For authenticated non-owners, return only a boolean indicating whether a CI pipeline is configured — never environment variable names, trigger tokens, build secret references, or pipeline command sequences. Rotate all existing trigger tokens immediately upon discovering this misconfiguration and audit recent build history for unauthorized trigger events.

WRONG
router.get('/skills/:id/ci/config',
  cors({ origin: true, credentials: true }),  // reflects any origin
  async (req, res) => {
    const config = await db.getCiConfig(req.params.id);
    // returns triggerTokens[], envVarNames[], buildSecretRefs[], pipelineSteps[]
    res.json(config);
  }
);
RIGHT
const ALLOWED_ORIGINS = new Set([
  'https://skillaudit.dev',
  'https://app.skillaudit.dev'
]);

function strictCors(req, res, next) {
  const origin = req.headers.origin;
  if (origin && ALLOWED_ORIGINS.has(origin)) {
    res.setHeader('Access-Control-Allow-Origin', origin);
    res.setHeader('Access-Control-Allow-Credentials', 'true');
    res.setHeader('Vary', 'Origin');
  }
  next();
}

router.get('/skills/:id/ci/config',
  requireSession,     // auth before CORS headers are emitted
  strictCors,
  async (req, res) => {
    const isOwner = await db.isSkillOwner(req.params.id, req.session.orgId);
    if (!isOwner) {
      // non-owners: existence flag only — no trigger tokens, env names, or secret refs
      const hasConfig = await db.hasCiConfig(req.params.id);
      return res.json({ configured: hasConfig });
    }
    const config = await db.getCiConfig(req.params.id);
    // Never return raw trigger token values — treat them as write-only
    const { triggerTokens: _dropped, ...safeConfig } = config;
    res.json({ ...safeConfig, triggerTokenCount: Array.isArray(_dropped) ? _dropped.length : 0 });
  }
);

CORS45-002 — Wildcard ACAO on build trigger enables quota exhaustion and tampered-ref injection

The build trigger endpoint at POST /api/skills/:id/ci/trigger accepts a commit reference — a SHA, branch name, or tag — and initiates a CI build against that ref. With ACAO: *, any page that holds the victim publisher's Bearer token can submit build trigger requests without restriction. Because Bearer token requests are not credentialed-cookie requests, browsers allow reading responses to wildcard-ACAO Bearer token requests, making the attack viable without withCredentials:true as long as the attacker has obtained the token through any of the standard harvesting vectors: XSS in the registry frontend, localStorage extraction by a compromised third-party script, or token leakage from another CORS misconfiguration in the same API.

The quota exhaustion attack is the more visible and immediately disruptive damage vector. Build minutes are a metered resource in every hosted CI system: registries enforce monthly quotas on a per-org basis, and publishers plan their release cadence around predictable quota availability. When an attacker triggers hundreds of builds against a victim publisher's quota in a short window, the monthly allocation is consumed before the publisher's legitimate release schedule can execute. The first sign the publisher sees is a CI failure on a planned release: the build system returns a quota-exceeded error, the release pipeline stalls, and the developer support queue receives a ticket that takes hours to route to the billing team. During that window, the registry listing for the affected skills shows a stale version — no security patches, no bug fixes, no feature releases.

The tampered-ref injection attack is the more severe and less visible damage vector. If the attacker can trigger a build against an attacker-controlled commit SHA — a commit pushed to a fork of the skill's repository, containing a modified version of the skill with injected malicious behavior — the registry's CI system will execute that build and, depending on how the pipeline is configured, potentially publish the resulting artifact to the marketplace. Skills that use a simplified pipeline configuration that trusts the ref parameter as a direct input to git checkout without validating that the ref belongs to the publisher's linked repository are directly vulnerable to this attack. The result is a supply chain compromise: a tampered skill version is published to the registry under a trusted publisher's identity, with the modification invisible to any consumer who does not perform a source diff between consecutive versions.

CORS45-002 fix: Remove the wildcard ACAO: * entirely. Require session authentication — do not accept Bearer tokens without a session context. Add a CSRF token for the mutation operation. Require requireRole('admin') or equivalent publisher role. Validate the submitted ref against a database of refs that belong to the linked repository — reject any ref that cannot be resolved against the publisher's registered repository. Enforce per-org build trigger rate limits. Audit every triggered build for the ref used and emit an alert on any ref that does not match the publisher's default branch or a registered release tag.

// WRONG — wildcard ACAO; anyone with a Bearer token can trigger builds
router.post('/skills/:id/ci/trigger',
  cors({ origin: '*' }),
  async (req, res) => {
    const { ref } = req.body;  // attacker-controlled — no validation
    await ciSystem.triggerBuild(req.params.id, ref);
    res.json({ triggered: true });
  }
);

// RIGHT — strict CORS + session + CSRF + role + ref validation
router.post('/skills/:id/ci/trigger',
  requireSession,
  strictCors,
  requireCsrf,
  requireRole('publisher'),
  async (req, res) => {
    const { ref } = req.body;
    // Validate ref belongs to the publisher's registered repository
    const skill = await db.getSkill(req.params.id);
    if (skill.orgId !== req.session.orgId) return res.status(403).json({ error: 'forbidden' });
    const validRef = await github.refExistsInRepo(skill.repoUrl, ref);
    if (!validRef) return res.status(400).json({ error: 'invalid_ref' });
    // Rate limit: 10 triggers per org per hour
    await rateLimiter.consume(`ci-trigger:${req.session.orgId}`, 1);
    await ciSystem.triggerBuild(req.params.id, ref);
    await auditLog.write({ event: 'ci_trigger', skillId: req.params.id, ref, actor: req.session.userId });
    res.json({ triggered: true });
  }
);

CORS45-003 — Timing oracle on CI logs enumerates high-activity skills as CORS45-001 targets

The CI build log endpoint at GET /api/skills/:id/ci/logs returns the most recent build log output for a given skill. The CORS45-003 vulnerability is not a direct data leak — it is a timing side-channel that makes the full CORS45-001 attack dramatically more efficient. The endpoint emits the CORS origin reflection header before executing the ownership check that determines whether the requesting session has permission to read the logs. This creates a window where the response latency differs measurably between three cases: a skill ID that has an active build log but belongs to a different org (ownership check fails after DB query — slower), a skill ID that has no build log at all (early exit before ownership check — faster), and a skill ID in the requesting session's org (ownership check succeeds — returns log data). An attacker who can observe these timing differences can enumerate which skills across the entire registry have active build logs, distinguishing them from skills with no CI activity.

The practical value of this oracle is as a targeting filter for CORS45-001. A direct CORS45-001 attack against arbitrary skill IDs is noisy — it generates authentication events against skills from other organizations that the victim session has no relationship with, creating audit log entries that security teams may notice. The CORS45-003 timing oracle allows the attacker to first build a list of skills with active CI pipelines, then run CORS45-001 only against skills whose publishers are likely to be active users of the registry — maximizing the probability of obtaining a live trigger token and minimizing the audit log footprint of the CORS45-001 phase.

The timing oracle is also valuable for competitive intelligence independent of its use in the CORS45-001 chain. A competitor who can enumerate which skills have high-frequency build activity — indicated by the presence of recent build log entries — has a continuous signal about which skills are being actively developed, which publishers are preparing releases, and which areas of the marketplace are receiving investment. This intelligence has direct commercial value in a marketplace where publication timing and feature velocity are competitive differentiators.

CORS45-003 fix: Move the ownership check to execute before CORS headers are emitted. Use a unified WHERE clause that includes the session's org ID, so the database query returns a consistent result shape regardless of ownership. Normalize the response latency for not-found and not-owned cases by ensuring both paths hit the database before returning. Use constant-time comparison for any token-based authorization in the endpoint path.

// WRONG — CORS emitted before ownership check creates timing oracle
router.get('/skills/:id/ci/logs',
  cors({ origin: true, credentials: true }),  // emits ACAO before auth
  async (req, res) => {
    const logs = await db.getCiLogs(req.params.id);  // query runs before ownership check
    if (!logs) return res.status(404).json({ error: 'not_found' });
    if (logs.orgId !== req.session?.orgId) return res.status(403).json({ error: 'forbidden' });
    res.json(logs);
  }
);

// RIGHT — ownership and CORS emitted together, unified WHERE clause
router.get('/skills/:id/ci/logs',
  requireSession,
  strictCors,
  async (req, res) => {
    // Unified WHERE: orgId check in the query — consistent result shape regardless of ownership
    const logs = await db.getCiLogsForOrg(req.params.id, req.session.orgId);
    if (!logs) return res.status(404).json({ error: 'not_found' });
    res.json(logs);
  }
);

CORS45-004 — Credential-bearing CORS on cache delete floods the CI queue during primary attack

The CI cache deletion endpoint at DELETE /api/skills/:id/ci/cache removes the build layer cache for a given skill. Build layer caching is what makes incremental CI builds fast: a skill that hasn't changed its dependency set since the last build reuses the cached dependency layer, reducing a 4-minute cold build to a 30-second incremental run. When this endpoint is configured with cors({origin:true,credentials:true}), any origin can delete any build layer cache using the victim admin session. The attack is not targeted at a single skill: a single authenticated admin session typically has permission to delete caches across the entire organization's skill portfolio.

The destruction of build layer caches is primarily a force multiplier, not an end goal. An attacker who deletes the build layer cache for all 40 skills in a victim organization does not damage those skills directly — the next build for each skill will succeed, just slowly. What the cache deletion accomplishes is a CI queue overflow during the attack window. When every skill in an org is simultaneously executing a cold full rebuild instead of a fast incremental run, the organization's CI compute allocation is consumed by infrastructure rebuilding. The legitimate DevOps and security monitoring pipelines that would otherwise detect and respond to the primary attack — monitoring skill publication events, running post-publish security scans, verifying artifact signatures — are queued behind the flood of cold rebuilds. The CI queue becomes a temporary DoS against the organization's own automated security controls.

Beyond the queue flood, cache deletion has a secondary intelligence value: it forces every skill in the organization to do a full dependency installation on the next build. Registry operators who monitor dependency installation logs for anomalous package versions or unexpected registry hits will see a sudden burst of dependency installations across all skills simultaneously — a volume spike that may mask a targeted malicious dependency injection in one of those builds. The attacker can inject a compromised package into a dependency used by a high-value skill while the dependency installation logs for that skill are buried in the noise of a full org-wide cold rebuild.

CORS45-004 fix: Replace cors({origin:true,credentials:true}) with an explicit allowlist. Require requireRole('admin'). Add an ownership check that validates the skill belongs to the requesting session's org before executing the delete. Enforce a per-org cache delete rate limit. Write an audit log entry and emit a notification to the skill's owning team on every cache deletion. Consider requiring a secondary confirmation mechanism — a TOTP code or a recently minted session token — for cache deletion operations that span more than one skill in a single request.

WRONG
router.delete('/skills/:id/ci/cache',
  cors({ origin: true, credentials: true }),  // any origin, any session
  async (req, res) => {
    await ciSystem.deleteCache(req.params.id);  // no ownership check
    res.json({ deleted: true });
  }
);
RIGHT
router.delete('/skills/:id/ci/cache',
  requireSession,
  strictCors,
  requireRole('admin'),
  async (req, res) => {
    const skill = await db.getSkill(req.params.id);
    if (!skill || skill.orgId !== req.session.orgId) {
      return res.status(403).json({ error: 'forbidden' });
    }
    // Rate limit: 5 cache deletes per org per hour
    await rateLimiter.consume(`ci-cache-delete:${req.session.orgId}`, 1);
    await ciSystem.deleteCache(req.params.id);
    await auditLog.write({ event: 'ci_cache_delete', skillId: req.params.id, actor: req.session.userId });
    // Notify skill's owning team
    await notify.send(skill.teamId, `CI cache for ${skill.name} was deleted by ${req.session.userId}`);
    res.json({ deleted: true });
  }
);

Compound build supply chain attack

The four SA-SKL-CORS45 findings compose into a four-stage build supply chain attack that can be executed within a single authenticated browser session, using a victim publisher's session for stages 1–3 and trigger tokens exfiltrated in stage 2 for stage 4.

Stage 1 — Enumerate high-activity CI skills via build log timing oracle (CORS45-003)

The attacker iterates over skill IDs in the registry, issuing GET requests to /api/skills/:id/ci/logs from an attacker-controlled page while measuring response latency. Skills that return a consistent slow pattern — indicating an ownership check failure after a successful DB query — are confirmed as having active CI pipelines and belonging to organizations other than the attacker's. These skills are added to the target list for stage 2. The oracle phase is low-noise: it generates no authentication failures, no ownership violation alerts, and no anomalous log entries — only response-time measurements.

Stage 2 — Exfiltrate CI configuration including ANTHROPIC_API_KEY and pipeline trigger tokens (CORS45-001)

Using the target list from stage 1, the attacker issues cross-origin GET requests to /api/skills/:id/ci/config for each high-activity skill, using the victim admin's authenticated browser session. Each request returns the full CI configuration document including environment variable names (ANTHROPIC_API_KEY, DOCKER_HUB_TOKEN, AWS_ACCESS_KEY_ID), build secret references, and pipeline trigger tokens. The trigger tokens are the durable outcome: they persist past this browser session and can be used from any origin without authentication. The attacker stores these tokens in an external collection for use in stage 3.

Stage 3 — Inject malicious ref to trigger tampered build (CORS45-002)

Using the trigger tokens collected in stage 2 (or by using the CORS45-002 wildcard ACAO directly with the victim's Bearer token), the attacker submits build trigger requests to /api/skills/:id/ci/trigger with a ref pointing to an attacker-controlled commit on a fork of the skill repository. This commit contains a modified version of the skill with injected malicious behavior: a prompt injection payload embedded in the skill's prompt templates, an exfiltration hook added to the skill's tool call handlers, or a dependency substitution that routes tool invocations through an attacker-controlled proxy. If the registry's CI pipeline does not validate that the ref belongs to the publisher's linked repository, the tampered build executes and publishes to the marketplace under the legitimate publisher's identity.

Stage 4 — Purge CI layer cache to flood the CI queue during primary attack (CORS45-004)

Concurrently with stage 3, the attacker issues DELETE requests to /api/skills/:id/ci/cache for every skill in the victim organization using the admin session. All pending builds for all skills degrade to cold full rebuilds simultaneously. The CI compute allocation is consumed by infrastructure work. The registry's post-publish security scan pipeline, its artifact signature verification jobs, and its automated vulnerability detection pipelines are all queued behind the flood of cold rebuilds, creating a window in which the tampered build published in stage 3 passes through the registry's automated checks without immediate review.

StageFindingWhat it doesWhat it enables
1CORS45-003Timing oracle enumerates high-activity CI skillsNarrows CORS45-001 to highest-value targets
2CORS45-001Exfiltrates CI config: API keys, trigger tokensDurable trigger tokens for stage 3
3CORS45-002Trigger tokens fire build against attacker-controlled refTampered skill published to marketplace
4CORS45-004Purge all CI caches for victim orgCI queue flooded, post-publish scans delayed

Detection with SkillAudit AST queries

SkillAudit's static analysis engine detects the SA-SKL-CORS45 patterns using three AST query classes that run on the registry's CI management router code.

The first query class targets credential-bearing CORS on CI configuration and cache deletion endpoints. It matches cors({origin:true,credentials:true}) or cors({origin:(req,cb)=>cb(null,true),credentials:true}) applied to route handlers whose path pattern contains the string /ci/config, /ci/cache, or any route handler that calls db.getCiConfig, ciSystem.deleteCache, or similar CI configuration or mutation method names. When this pattern is found without a session-authentication middleware preceding it in the middleware chain, the finding is elevated to CRITICAL.

The second query class targets wildcard ACAO on CI trigger endpoints. It matches cors({origin:'*'}) or the equivalent string literal 'Access-Control-Allow-Origin', '*' applied to routes whose path pattern contains /ci/trigger or whose handler calls ciSystem.triggerBuild, ci.trigger, or similar trigger invocation methods. The query additionally checks whether the handler validates the submitted ref parameter — if no string validation or allowlist check precedes the trigger call, an additional injection flag is added to the finding.

The third query class targets the CORS45-003 middleware ordering oracle. It matches routes where a cors() call with origin reflection appears before an ownership or authorization check in the middleware chain, applied to routes whose path pattern contains /ci/logs, /ci/status, or similar CI read endpoints. The detector flags any route where the ownership check is separated from the CORS emission by one or more async database query calls, since these calls create the response-time differential that enables the timing oracle.

Try it: Paste your skill registry's CI management router at skillaudit.dev and get a full CORS45 analysis in under 60 seconds, including AST match locations and suggested fix diffs for each finding.

Summary and remediation checklist

The SA-SKL-CORS45 findings exploit CORS misconfigurations on CI/CD pipeline management endpoints to construct a four-stage build supply chain attack. CORS45-001 delivers CI configuration including API key names and durable trigger tokens. CORS45-002 uses those tokens to inject a tampered build ref. CORS45-003 provides a low-noise targeting oracle to identify the highest-value victims. CORS45-004 floods the CI queue during the primary attack to delay automated detection. Each finding is independently exploitable, but together they represent a complete attack on the registry's build supply chain integrity.

CheckApplies to
Replace cors({origin:true,credentials:true}) with an explicit allowlist on all CI management routesCORS45-001, CORS45-004
Add requireSession before all CORS middleware on CI endpointsCORS45-001, CORS45-003, CORS45-004
Remove wildcard ACAO: * from build trigger endpoint; require session + CSRF + publisher roleCORS45-002
Validate submitted build ref against publisher's registered repository before triggeringCORS45-002
Move ownership check before CORS emission on CI log and status endpoints; use unified WHERE clauseCORS45-003
Add ownership check + requireRole('admin') + rate limit on CI cache deletionCORS45-004
Rotate all existing trigger tokens and audit recent build history for unauthorized trigger eventsCORS45-001
Emit audit log entries and team notifications on every cache deletion and build trigger eventCORS45-002, CORS45-004

See also: SA-SKL-CORS45 advisory — SA-SKL-CORS44: rate limiting and quota enforcement CORS — SA-SKL-CORS43 blog: notification and alert subscription CORS