← Blog

Claude MCP skill CORS misconfiguration — skill version changelog and release notes endpoints (SA-SKL-CORS84)

SA-SKL-CORS84 identifies four CORS misconfiguration vulnerabilities in MCP skill registry skill version changelog and release notes endpoints. Credential-bearing CORS on the changelog read endpoint exposes the full changelog document including unpublished release notes that reveal the publisher's internal product roadmap before official announcement, admin-only security patch annotations that describe the precise vulnerabilities fixed in each release and that therefore constitute pre-disclosure intelligence for any versions still running in users' environments, and embargo notes for coordinated disclosure events that reveal the timeline and scope of unreleased fixes; wildcard ACAO on the changelog creation endpoint allows any page to inject false changelog entries under an admin's identity, polluting the release history that security-conscious users rely on to decide whether to upgrade; a timing oracle on the draft changelog endpoint reveals which skills are actively being prepared for a new release; and credential-bearing CORS on the changelog deletion endpoint allows any page to permanently erase the release history that users consult to verify which security patches they have applied.

SA-SKL-CORS84 findings at a glance
CRITICALCORS84-001 — GET /api/skills/:id/changelog has cors({origin:true,credentials:true}) — any origin reads full changelog including unpublished release notes with internal roadmap details, admin-only security patch annotations, and embargo notes for coordinated disclosure events using victim admin session
HIGHCORS84-002 — POST /api/skills/:id/changelog has ACAO:* — any page creates changelog entries under victim admin identity; attacker floods changelog entries polluting release history with false security advisories
MEDIUMCORS84-003 — GET /api/skills/:id/changelog/draft reflects Origin before auth check — timing oracle reveals skills with active draft changelog (draft-active warm cache ~3ms vs cold ~160ms)
CRITICALCORS84-004 — DELETE /api/skills/:id/changelog/:entryId has cors({origin:true,credentials:true}) — any origin deletes changelog entries permanently destroying release history that users rely on for security patch verification

CORS84-001 — Credential-bearing CORS exposes unpublished release notes and security patch embargo details

The GET /api/skills/:id/changelog endpoint returns the complete changelog document for a skill version, including both published entries visible to all users and admin-only fields gated behind a role check performed after CORS middleware runs. With cors({origin:true,credentials:true}) applied before authentication, any cross-origin page visited by an authenticated admin reads the full document using the admin's session credentials. The unpublished release notes field contains draft entries for versions not yet released, exposing the publisher's internal development roadmap including feature timelines and architectural decisions not intended for public disclosure. The admin-only security patch annotations are the most dangerous field: they describe the precise class and location of each vulnerability fixed in every release, which constitutes actionable pre-disclosure intelligence for all users who have not yet upgraded and whose installations remain vulnerable. The embargo notes field explicitly names the coordinated disclosure timeline, the reporting researcher, and the CVE reservation — all of which carry strict disclosure obligations that this CORS misconfiguration violates.

Vulnerable
// CORS84-001 — VULNERABLE
const express = require('express');
const cors = require('cors');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.get('/skills/:id/changelog',
  cors({ origin: true, credentials: true }),
  requireSession,
  async (req, res) => {
    const isAdmin = req.session.roles.includes('registry_admin');
    const changelog = await db.getSkillChangelog(req.params.id, {
      includeUnpublished: isAdmin,
      includeSecurityAnnotations: isAdmin,
      includeEmbargoNotes: isAdmin,
      includeInternalRoadmapDetails: isAdmin
    });
    res.json(changelog);
  }
);

module.exports = router;

Security patch annotations in a changelog describe exploitable vulnerabilities in every version below the patched release. When an attacker obtains these annotations via CORS before users have upgraded, every unpatched installation becomes an immediately actionable target. Admin-only fields must live on a separately gated admin endpoint — they must never be reachable from the same route that serves public changelog data, regardless of the runtime role check that follows.

Fixed
// CORS84-001 — FIXED: auth before CORS; strip admin-only fields; separate admin endpoint
const express = require('express');
const { db } = require('../db');
const { requireSession, requireAdminRole } = require('../middleware/auth');
const { applyCorsAllowlist } = require('../middleware/cors');

const router = express.Router();

// Public changelog endpoint — no admin fields
router.get('/skills/:id/changelog',
  requireSession,
  applyCorsAllowlist,
  async (req, res) => {
    const changelog = await db.getSkillChangelog(req.params.id, {
      includeUnpublished: false,
      includeSecurityAnnotations: false,
      includeEmbargoNotes: false,
      includeInternalRoadmapDetails: false
    });
    res.json(changelog);
  }
);

// Admin-only changelog endpoint — explicit role gate
router.get('/admin/skills/:id/changelog',
  requireSession,
  requireAdminRole,
  applyCorsAllowlist,
  async (req, res) => {
    const changelog = await db.getSkillChangelog(req.params.id, {
      includeUnpublished: true,
      includeSecurityAnnotations: true,
      includeEmbargoNotes: true,
      includeInternalRoadmapDetails: true
    });
    res.json(changelog);
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N — Base Score 6.5 (HIGH); with admin session required escalates to CVSS 8.1 accounting for pre-disclosure data exposure scope.

CORS84-002 — Wildcard ACAO on changelog creation endpoint allows false security advisory injection

The POST /api/skills/:id/changelog endpoint creates a new changelog entry for a skill version, appending it to the publicly visible release history. With ACAO:* applied, any page can trigger this endpoint using a victim admin's session credentials — the wildcard origin permits the browser to include the session cookie on the cross-origin request. An attacker who lures an admin to a malicious page can inject arbitrary changelog entries under the admin's identity: false security advisories claiming a popular skill version contains a critical remote code execution vulnerability, fabricated deprecation notices claiming a widely-used version will stop functioning, or counterfeit changelogs crediting the attacker as a contributor to official security patches. Because changelog entries bear the admin's identity and appear indistinguishable from legitimate entries, users who rely on the changelog to make upgrade decisions will act on false information. The attacker can also flood hundreds of entries per minute, burying legitimate changelog history under noise and making it impractical to audit the modification timeline.

Vulnerable
// CORS84-002 — VULNERABLE: wildcard ACAO on changelog creation endpoint
const express = require('express');
const cors = require('cors');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.post('/skills/:id/changelog',
  cors({ origin: '*' }),
  requireSession,
  async (req, res) => {
    const entry = await db.createChangelogEntry({
      skillId: req.params.id,
      version: req.body.version,
      content: req.body.content,
      type: req.body.type,
      createdBy: req.session.userId
    });
    res.json({ entryId: entry.id, createdAt: entry.createdAt });
  }
);

module.exports = router;

Changelog entries bearing an admin identity are indistinguishable from legitimate release notes — false security advisories injected this way directly manipulate user upgrade decisions. Allowlisted CORS prevents cross-origin submission; a per-skill rate limit of two entries per day matches the natural cadence of legitimate release activity while making flood attacks impractical; and requireSkillRole(['owner']) ensures only the actual skill owner can append to their own release history.

Fixed
// CORS84-002 — FIXED: allowlist CORS; CSRF; per-skill rate limit 2/day; requireSkillRole
const express = require('express');
const { db } = require('../db');
const {
  requireSession,
  requireSkillRole
} = require('../middleware/auth');
const { applyCorsAllowlist } = require('../middleware/cors');
const { csrfProtection } = require('../middleware/csrf');
const { rateLimit } = require('../middleware/rate-limit');

const router = express.Router();

router.post('/skills/:id/changelog',
  requireSession,
  applyCorsAllowlist,
  csrfProtection,
  requireSkillRole(['owner']),
  rateLimit({
    key: req => `changelog-create:${req.params.id}`,
    max: 2,
    window: '1d',
    message: 'Changelog entry rate limit exceeded — max 2 entries per skill per day'
  }),
  async (req, res) => {
    const entry = await db.createChangelogEntry({
      skillId: req.params.id,
      version: req.body.version,
      content: req.body.content,
      type: req.body.type,
      createdBy: req.session.userId
    });
    res.json({ entryId: entry.id, createdAt: entry.createdAt });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L — Base Score 7.1 (HIGH); integrity impact reflects false advisory injection; availability impact reflects changelog flood.

CORS84-003 — Timing oracle reveals skills with active draft changelog via Origin reflection before auth

The GET /api/skills/:id/changelog/draft endpoint returns the in-progress draft changelog entry for the next version of a skill. Skills that have an active draft maintain a warm cache entry populated by the publisher's editing session; this warm cache returns in approximately 3ms. Skills with no active draft incur a cold database lookup that takes approximately 160ms. Because the endpoint reflects the requesting Origin header before the authentication middleware executes, an unauthenticated cross-origin page can measure the response latency to determine whether a given skill has an active draft changelog — meaning the publisher is actively preparing a new release. This timing intelligence is commercially valuable: knowing a competitor's skill is mid-release-cycle reveals their go-to-market timing, allows rivals to accelerate their own competing release, and in combination with CORS84-001 provides a targeted list of skills where embargo notes are most likely to exist in the full changelog document.

Vulnerable
// CORS84-003 — VULNERABLE: Origin reflected before auth
const express = require('express');
const cors = require('cors');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { draftChangelogCache } = require('../cache');

const router = express.Router();

router.get('/skills/:id/changelog/draft',
  cors({ origin: true }),
  requireSession,
  async (req, res) => {
    const draft = await draftChangelogCache.get(`draft:${req.params.id}`)
      || await db.getDraftChangelog(req.params.id);
    res.json(draft);
  }
);

module.exports = router;

A skill having an active draft changelog reveals competitive release timing intelligence — the existence of the draft is itself a secret. Moving authentication before CORS eliminates the channel by which an unauthenticated attacker can probe for draft state; the constant-time response floor of 50ms closes the residual timing channel that remains when cache branching produces measurable latency differences even after auth gating is correctly ordered.

Fixed
// CORS84-003 — FIXED: auth before CORS; constant-time response floor 50ms
const express = require('express');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { applyCorsAllowlist } = require('../middleware/cors');
const { draftChangelogCache } = require('../cache');

const DRAFT_RESPONSE_FLOOR_MS = 50;

const router = express.Router();

router.get('/skills/:id/changelog/draft',
  requireSession,
  applyCorsAllowlist,
  async (req, res) => {
    const start = Date.now();
    const draft = await draftChangelogCache.get(`draft:${req.params.id}`)
      || await db.getDraftChangelog(req.params.id);
    const elapsed = Date.now() - start;
    if (elapsed < DRAFT_RESPONSE_FLOOR_MS) {
      await new Promise(r => setTimeout(r, DRAFT_RESPONSE_FLOOR_MS - elapsed));
    }
    res.json(draft);
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N — Base Score 3.7 (LOW); timing oracle requires repeated measurement but requires no credentials; competitive intelligence impact justifies remediation.

CORS84-004 — Credential-bearing CORS deletes changelog entries destroying security patch verification history

The DELETE /api/skills/:id/changelog/:entryId endpoint permanently removes a changelog entry from a skill's release history. Users who evaluate whether a skill is safe to install or upgrade rely on the changelog to verify which security patches have been applied and which known vulnerabilities have been addressed in each version. With cors({origin:true,credentials:true})

Vulnerable
// CORS84-004 — VULNERABLE: credential-bearing CORS on changelog entry deletion
const express = require('express');
const cors = require('cors');
const { db } = require('../db');
const { requireSession, requireAdminRole } = require('../middleware/auth');

const router = express.Router();

router.delete('/skills/:id/changelog/:entryId',
  cors({ origin: true, credentials: true }),
  requireSession,
  requireAdminRole,
  async (req, res) => {
    await db.deleteChangelogEntry(req.params.id, req.params.entryId);
    res.json({ deleted: req.params.entryId });
  }
);

module.exports = router;

Changelog entries documenting security patches are part of the platform's trust infrastructure — their deletion directly degrades the ability of users to perform security due diligence. Soft-delete with 90-day retention provides a reinstatement window for entries deleted by attackers exploiting this CORS misconfiguration. Re-authentication before deletion raises the bar against session-hijack attacks. The audit log with mandatory reason field provides the forensic record needed to distinguish legitimate administrative deletion from attack-driven erasure.

Fixed
// CORS84-004 — FIXED: auth before CORS; re-auth; soft-delete 90-day retention; audit log
const express = require('express');
const { db } = require('../db');
const { requireSession, requireAdminRole, reAuthRequired } = require('../middleware/auth');
const { applyCorsAllowlist } = require('../middleware/cors');
const { csrfProtection } = require('../middleware/csrf');
const { auditLog } = require('../audit');

const router = express.Router();

router.delete('/skills/:id/changelog/:entryId',
  requireSession,
  applyCorsAllowlist,
  csrfProtection,
  requireAdminRole,
  reAuthRequired,
  async (req, res) => {
    const expiresAt = new Date(Date.now() + 90 * 24 * 60 * 60 * 1000);
    await db.softDeleteChangelogEntry(req.params.id, req.params.entryId, {
      deletedBy: req.session.userId,
      reason: req.body.reason,
      expiresAt
    });
    await auditLog.write({
      action: 'changelog.entry.delete',
      skillId: req.params.id,
      entryId: req.params.entryId,
      actorId: req.session.userId,
      reason: req.body.reason,
      at: new Date()
    });
    res.json({ deleted: req.params.entryId, reinstateableUntil: expiresAt });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H — Base Score 8.1 (HIGH); integrity and availability both high due to irreversible destruction of security patch verification history.

Scan your MCP skill for CORS84 and 200+ other vulnerability classes

SkillAudit checks for all SA-SKL-CORS vulnerability patterns including credential-bearing CORS before auth on changelog endpoints, wildcard ACAO on release note creation, timing oracle misconfigurations on draft changelog status checks, and soft-delete enforcement on changelog entry deletion. Get a graded report with line-level code fixes in 60 seconds.

Get a free audit