Claude MCP skill CORS misconfiguration — skill version changelog and release notes endpoints (SA-SKL-CORS78)
SA-SKL-CORS78 identifies four CORS misconfiguration vulnerabilities in MCP skill registry skill version changelog and release notes endpoints. Credential-bearing CORS on the changelog retrieval endpoint exposes the complete changelog document including unreleased draft entries not yet visible to the skill's subscribers, internal QA notes that describe test failures and remediation decisions during pre-release validation, and embargoed security-patch details where the security advisory behind a patch version has not yet been publicly disclosed; wildcard ACAO on the changelog publish endpoint allows any page to trigger a changelog publication event under the victim admin's identity, and flooding these publish requests spams every skill subscriber with redundant email notifications creating a notification fatigue denial-of-service that degrades subscriber engagement across the entire registry; a timing oracle on the changelog drafts endpoint reveals which skills have pending unreleased changelog drafts by exploiting the cache latency differential between draft-active entries (~4ms) and cold lookups (~190ms) without reading the response body; and credential-bearing CORS on the changelog entry deletion endpoint allows any page to permanently erase individual changelog entries, destroying the version history that security teams use to trace when a vulnerability was introduced and patched across the skill's release timeline.
GET /api/skills/:id/changelog has cors({origin:true,credentials:true}) — any origin reads full changelog including unreleased draft entries, internal QA notes, and embargoed security-patch details using victim admin sessionPOST /api/skills/:id/changelog/publish has ACAO:* — any page triggers changelog publish under victim admin identity; attacker floods publish requests spamming all subscribers with redundant email notifications causing notification fatigue DoSGET /api/skills/:id/changelog/drafts reflects Origin before auth check — timing oracle reveals which skills have pending unreleased changelog drafts (draft-active warm cache ~4ms vs cold ~190ms)DELETE /api/skills/:id/changelog/:entryId has cors({origin:true,credentials:true}) — any origin deletes changelog entries permanently destroying version history and breaking audit trail for security-patch versionsCORS78-001 — Credential-bearing CORS exposes unreleased changelog drafts and embargoed security-patch details
The GET /api/skills/:id/changelog endpoint returns the full changelog document for the authenticated admin session. This document includes draft entries that are in-progress and have not yet been published to subscribers, internal QA notes attached to pre-release versions documenting test failures and their resolutions, and the embargoed security advisory content for patch versions whose underlying vulnerability is still inside the coordinated disclosure embargo window. With cors({origin:true,credentials:true}) applied before the authentication check, any cross-origin page visited by an authenticated admin user can retrieve this document in full, exposing pre-release roadmap details and unpublished security advisory content to any attacker who can lure the admin to visit their page.
// CORS78-001 — VULNERABLE
router.get('/skills/:id/changelog',
cors({ origin: true, credentials: true }), // reflects any Origin
requireSession,
async (req, res) => {
const isAdmin = req.session.roles.includes('registry_admin');
const changelog = await db.getChangelog(req.params.id, { includeDrafts: isAdmin });
res.json(changelog);
}
);
// CORS78-001 — FIXED: auth before CORS; strip draft and embargoed fields
router.get('/skills/:id/changelog',
requireSession,
applyCorsAllowlist,
async (req, res) => {
const isAdmin = req.session.roles.includes('registry_admin');
const changelog = await db.getChangelog(req.params.id, { includeDrafts: isAdmin });
if (!isAdmin) {
changelog.entries = changelog.entries
.filter(e => e.published && !e.embargoed)
.map(({ internalNotes, securityAdvisoryDraft, ...pub }) => pub);
}
res.json(changelog);
}
);
CORS78-002 — Wildcard ACAO on changelog publish triggers notification fatigue DoS
The POST /api/skills/:id/changelog/publish endpoint publishes the current draft changelog entry and dispatches email notifications to all skill subscribers. With ACAO:*, any page can trigger this endpoint under the victim admin's session. An attacker floods publish requests across multiple skills, spamming every subscriber with repeated redundant changelog emails. This notification fatigue DoS degrades subscriber trust in registry emails, increasing unsubscribe rates and reducing the effectiveness of legitimate security advisories precisely when they are most needed.
// CORS78-002 — VULNERABLE: wildcard ACAO on publish endpoint
router.post('/skills/:id/changelog/publish',
cors({ origin: '*' }),
requireSession,
requireChangelogWritePermission,
async (req, res) => {
const jobId = await notificationQueue.enqueue({
skillId: req.params.id, type: 'changelog_publish',
triggeredBy: req.session.userId
});
res.json({ jobId });
}
);
// CORS78-002 — FIXED: allowlist CORS; CSRF token; per-skill rate limit
router.post('/skills/:id/changelog/publish',
requireSession,
requireChangelogWritePermission,
applyCorsAllowlist,
validateCsrfToken,
async (req, res) => {
const rlKey = `changelog:publish:ratelimit:${req.params.id}`;
if (await redis.get(rlKey)) {
return res.status(429).json({ error: 'publish_rate_limited', retryAfterSeconds: 3600 });
}
await redis.set(rlKey, '1', 'EX', 3600);
const jobId = await notificationQueue.enqueue({
skillId: req.params.id, type: 'changelog_publish',
triggeredBy: req.session.userId
});
res.json({ jobId });
}
);
CORS78-003 — Timing oracle reveals skills with pending unreleased changelog drafts
The GET /api/skills/:id/changelog/drafts endpoint reflects the caller's Origin header before the authentication middleware runs. Skills with active draft changelog entries have a hot Redis cache entry for the drafts document (~4ms). Skills with no current draft fall through to a database lookup (~190ms). An attacker probing the latency of this endpoint across the catalog identifies skills with pending unreleased entries — skills whose draft notes may reveal forthcoming security patches, upcoming deprecations, or roadmap details not yet public.
// CORS78-003 — VULNERABLE: Origin reflected before auth check
router.get('/skills/:id/changelog/drafts',
(req, res, next) => {
res.set('Access-Control-Allow-Origin', req.headers.origin || '*');
res.set('Access-Control-Allow-Credentials', 'true');
next();
},
requireSession, // too late — timing observable
async (req, res) => {
const cached = await redis.get(`changelog:drafts:${req.params.id}`);
if (cached) return res.json(JSON.parse(cached)); // ~4ms
const drafts = await db.getChangelogDrafts(req.params.id); // ~190ms
res.json(drafts);
}
);
// CORS78-003 — FIXED: auth before CORS; constant-time response floor 50ms
router.get('/skills/:id/changelog/drafts',
requireSession,
applyCorsAllowlist,
async (req, res) => {
const start = Date.now();
const cached = await redis.get(`changelog:drafts:${req.params.id}`);
const result = cached
? JSON.parse(cached)
: await db.getChangelogDrafts(req.params.id);
const pad = Math.max(0, 50 - (Date.now() - start));
if (pad > 0) await new Promise(r => setTimeout(r, pad));
res.json(result);
}
);
CORS78-004 — Credential-bearing CORS permanently deletes changelog entries destroying version history
The DELETE /api/skills/:id/changelog/:entryId endpoint performs a hard deletion of a changelog entry. With cors({origin:true,credentials:true}), any page visited by an authenticated admin can delete any changelog entry. An attacker who systematically deletes changelog entries for security-patch versions erases the registry's record of when vulnerabilities were introduced and patched, undermining forensic investigation and breaking the compliance audit trail that enterprise buyers require to verify that skills they depend on have been actively maintained and patched against known vulnerabilities.
// CORS78-004 — VULNERABLE: credential-bearing CORS on changelog entry deletion
router.delete('/skills/:id/changelog/:entryId',
cors({ origin: true, credentials: true }),
requireSession,
requireChangelogAdminPermission,
async (req, res) => {
// Hard delete — no soft-delete, no recovery
const result = await db.query(
'DELETE FROM changelog_entries WHERE id=$1 AND skill_id=$2',
[req.params.entryId, req.params.id]
);
res.json({ deleted: result.rowCount });
}
);
// CORS78-004 — FIXED: auth first; allowlist CORS; re-auth; soft-delete with retention; audit log
router.delete('/skills/:id/changelog/:entryId',
requireSession,
requireChangelogAdminPermission,
applyCorsAllowlist,
requireRecentReAuthentication(300),
async (req, res) => {
const now = new Date().toISOString();
const retentionExpiry = new Date(Date.now() + 90 * 24 * 3600 * 1000).toISOString();
const result = await db.query(
`UPDATE changelog_entries SET deleted_at=$1, retention_expiry=$2, deleted_by=$3
WHERE id=$4 AND skill_id=$5 AND deleted_at IS NULL`,
[now, retentionExpiry, req.session.userId, req.params.entryId, req.params.id]
);
await auditLog.record({
action: 'changelog_entry_deletion', actorId: req.session.userId,
skillId: req.params.id, entryId: req.params.entryId, retentionExpiry
});
res.json({ softDeleted: result.rowCount, retentionExpiry });
}
);
SkillAudit detects all SA-SKL-CORS78 patterns via static AST analysis. Run a free audit on your MCP skill or Claude plugin and get a graded report with fix guidance in under 60 seconds.