Claude MCP skill CORS misconfiguration — skill changelog and release notes endpoints — SA-SKL-CORS56
SA-SKL-CORS56 documents four CORS misconfiguration patterns in MCP skill registry skill changelog and release notes endpoints. Changelog endpoints hold commercially sensitive pre-release information: unreleased draft entries, scheduled release dates, CI pipeline metadata embedded in build notes, and security vulnerability disclosures that the maintainer intends to publish only after a patch is live. A CORS misconfiguration here exposes this pre-release intelligence to any origin, allows injection of false security disclosures under victim maintainer identity, enables identification of skills with active unpublished releases via a timing oracle, and permits deletion of published security advisories that protect users from known vulnerabilities.
cors({origin:true,credentials:true}) on GET /api/skills/:id/changelog; any origin reads full changelog including unreleased draft entries, internal CI pipeline metadata with build system details, and scheduled release dates using victim session; fix: allowlist; requireSession for draft entries; return only published entries with no internal metadata for public callersACAO: * on POST /api/skills/:id/changelog; any page creates attacker-controlled changelog entries under victim maintainer identity injecting false security vulnerability disclosures or false feature announcements that affect user upgrade decisions; fix: remove wildcard; require session; requireRole('maintainer'); CSRF token; Zod ChangelogEntrySchema; rate-limit per userId+skillIdACAO origin reflection on GET /api/skills/:id/changelog/draft emitted before ownership check; timing oracle reveals changelog authoring velocity identifying skills with active unpublished releases as CORS56-001 targets; fix: auth before CORS emission; unified WHERE clause; normalize 403/404 latencycors({origin:true,credentials:true}) on DELETE /api/skills/:id/changelog/:entryId; any origin deletes any changelog entry using victim maintainer session, removing security advisory disclosures and preventing users from learning about vulnerabilities in skills they have installed; fix: allowlist + requireSession + ownership check + audit log on changelog entry deletion eventsCORS56-001 — Credential-bearing CORS on changelog list exposes unreleased draft entries and CI metadata
Severity: CRITICAL
The GET /api/skills/:id/changelog endpoint is configured with cors({origin:true,credentials:true}) applied at the router level. Any origin can read the full changelog document using the victim's session. The document includes unreleased draft entries — entries with published: false that describe changes the maintainer is preparing for the next release, including security patches for vulnerabilities that have not yet been publicly disclosed. It also includes CI pipeline metadata embedded in buildNotes fields: pipeline names, build IDs, CI environment variable names, and artifact paths that expose the maintainer's CI infrastructure layout. Scheduled release dates reveal when the next version will be published, enabling competitors to time their own announcements and attackers to plan coordinated pre-release exploitation.
// GET /api/skills/:id/changelog — cors({origin:true,credentials:true}) at router level
router.use(cors({ origin: true, credentials: true }));
router.get('/:id/changelog', async (req, res) => {
const entries = await Changelog.find({ skillId: req.params.id })
.select('+draft +buildNotes +scheduledAt'); // includes pre-release data
return res.json(entries);
});
// GET /api/skills/:id/changelog — per-route allowlist cors + field scoping
const changelogCors = cors({
origin: process.env.ALLOWED_ORIGINS.split(','),
credentials: true,
});
router.get('/:id/changelog', changelogCors, async (req, res) => {
const isMaintainer = req.session?.userId
&& await Skill.exists({ _id: req.params.id, maintainers: req.session.userId });
const filter = isMaintainer
? { skillId: req.params.id } // maintainers see drafts too
: { skillId: req.params.id, published: true }; // public: published only
const entries = await Changelog.find(filter)
.select(isMaintainer ? '+scheduledAt' : '-buildNotes -scheduledAt -draft');
return res.json(entries);
});
CORS56-002 — Wildcard ACAO on changelog creation injects false security disclosures
Severity: CRITICAL
The POST /api/skills/:id/changelog endpoint returns Access-Control-Allow-Origin: *. Any web page can create changelog entries under the victim maintainer's identity with attacker-controlled content. Injected entries that describe false security vulnerability disclosures — fabricated CVEs, invented SSRF or command-injection findings — trigger automated security scanner alerts in the CI pipelines of organizations that have installed the skill. These alerts may cause emergency downgrades, CI pipeline pauses, or unscheduled security reviews that consume engineering time and damage trust in the skill's author. False feature announcements that claim breaking API changes cause organizations to prematurely update their integrations against an API that has not changed, introducing compatibility failures.
Changelog entries drive automated downstream actions. Many CI security tools subscribe to skill registry changelog feeds and trigger alerts on entries tagged as security-related. A CORS misconfiguration that allows injection of false security changelog entries does not just mislead human readers — it fires automated incident response workflows across all organizations that have installed the skill.
// POST /api/skills/:id/changelog — ACAO:* with no role check or CSRF
router.post('/:id/changelog', requireSession, async (req, res) => {
const { version, title, body, type, severity } = req.body;
const entry = await Changelog.create({
skillId: req.params.id,
authorId: req.session.userId,
version, title, body,
type, // attacker-controlled: 'security' | 'feature' | 'fix'
severity, // attacker-controlled severity label
published: true, // immediately visible
});
return res.status(201).json(entry);
});
// POST /api/skills/:id/changelog — allowlist cors + maintainer role + CSRF + Zod
const ChangelogEntrySchema = z.object({
version: z.string().regex(/^\d+\.\d+\.\d+(-[a-zA-Z0-9.]+)?$/),
title: z.string().min(5).max(200),
body: z.string().min(10).max(10000),
type: z.enum(['security', 'feature', 'fix', 'deprecation', 'breaking']),
severity: z.enum(['critical', 'high', 'medium', 'low', 'info']).optional(),
scheduledAt: z.string().datetime().optional(),
});
router.post(
'/:id/changelog',
changelogCors,
requireSession,
verifyCsrf,
rateLimit({ windowMs: 60_000, max: 10, keyGenerator: r => `clog:${r.session.userId}:${r.params.id}` }),
async (req, res) => {
const isMaintainer = await Skill.exists({
_id: req.params.id,
maintainers: req.session.userId,
});
if (!isMaintainer) return res.status(403).json({ error: 'Maintainer role required' });
const parsed = ChangelogEntrySchema.safeParse(req.body);
if (!parsed.success) return res.status(400).json({ error: 'Invalid changelog entry' });
const entry = await Changelog.create({
skillId: req.params.id,
authorId: req.session.userId,
...parsed.data,
published: false, // draft-first; explicit publish action required
});
return res.status(201).json({ id: entry.id });
}
);
CORS56-003 — Timing oracle on changelog draft endpoint reveals active release velocity
Severity: MEDIUM
The GET /api/skills/:id/changelog/draft endpoint reflects the Origin header before performing the ownership check. Skills actively preparing a release have draft entries cached in memory, responding in under 5 ms. Skills with no active drafts require a full query, responding in 20–50 ms. Cross-origin RTT measurement identifies which skills have active unpublished releases — the most valuable CORS56-001 targets for pre-release entry exfiltration. The fix performs ownership check before CORS emission and enforces a constant-time response floor of 60 ms.
// GET /api/skills/:id/changelog/draft — Origin reflected before auth
router.get('/:id/changelog/draft', async (req, res) => {
res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
// ownership check runs after CORS header — timing oracle
const skill = await Skill.findOne({ _id: req.params.id, maintainers: req.session?.userId });
if (!skill) return res.status(403).json({ error: 'Forbidden' });
const drafts = draftCache.get(req.params.id) || await Changelog.find({ skillId: req.params.id, published: false });
return res.json(drafts);
});
// GET /api/skills/:id/changelog/draft — auth before CORS + constant-time floor
router.get('/:id/changelog/draft', requireSession, async (req, res) => {
const start = Date.now();
const skill = await Skill.findOne({ _id: req.params.id, maintainers: req.session.userId });
if (!skill) {
await sleep(60 - (Date.now() - start));
return res.status(404).json({ error: 'Not found' });
}
changelogCors(req, res, async () => {
const drafts = draftCache.get(req.params.id) || await Changelog.find({ skillId: req.params.id, published: false });
await sleep(Math.max(0, 60 - (Date.now() - start)));
return res.json(drafts);
});
});
CORS56-004 — Credential-bearing CORS on changelog deletion removes security advisory disclosures
Severity: CRITICAL
The DELETE /api/skills/:id/changelog/:entryId endpoint shares the same router-level credential-bearing CORS policy. Any page can delete any changelog entry using a victim maintainer session. Deleting a published security advisory entry — an entry that describes a patched vulnerability, provides a remediation timeline, or references a CVE — removes the notification that organizations monitoring the changelog rely on to trigger patching workflows. Users who have installed the skill and subscribe to its changelog feed never receive the advisory. Automated security tools that parse changelog entries for security-type records miss the disclosure. The window between vulnerability patch and user awareness is artificially extended, exposing organizations to exploitation of a known vulnerability that the maintainer has already patched but the user no longer knows about.
// DELETE /api/skills/:id/changelog/:entryId
// cors({origin:true,credentials:true}) from router.use()
// No ownership check, no audit log
router.delete('/:id/changelog/:entryId', requireSession, async (req, res) => {
await Changelog.deleteOne({ _id: req.params.entryId });
return res.status(204).end();
});
// DELETE /api/skills/:id/changelog/:entryId
// Per-route allowlist CORS + ownership check + audit log
router.delete('/:id/changelog/:entryId', changelogCors, requireSession, async (req, res) => {
const entry = await Changelog.findOne({ _id: req.params.entryId, skillId: req.params.id });
if (!entry) return res.status(404).json({ error: 'Entry not found' });
const isMaintainer = await Skill.exists({ _id: req.params.id, maintainers: req.session.userId });
if (String(entry.authorId) !== req.session.userId && !isMaintainer) {
return res.status(403).json({ error: 'Forbidden' });
}
await entry.deleteOne();
await AuditLog.create({
action: 'changelog.deleted',
actorId: req.session.userId,
entryId: req.params.entryId,
skillId: req.params.id,
entryType: entry.type,
origin: req.headers.origin,
at: new Date(),
});
return res.status(204).end();
});
Related advisories: SA-SKL-CORS55 (review/feedback) | SA-SKL-CORS54 (install pipeline) | SA-SKL-CORS55 blog