CORS Misconfigurations in MCP Skill Registry Changelog and Release Notes Management Endpoints
Changelog and release notes endpoints occupy a uniquely sensitive position in the trust infrastructure of an MCP skill registry. They are the authoritative public record of what a skill has done and what has been fixed — including when vulnerabilities were discovered, when patches were prepared, and when security disclosures were scheduled for public release. The draft release notes accessible before an entry is published may contain exact CVE identifiers, internal fix descriptions referencing vulnerable code paths, and scheduled disclosure dates that have not yet been coordinated with downstream consumers. When CORS is misconfigured on the changelog read endpoint, an attacker can read this pre-disclosure intelligence using any authenticated admin session. When CORS is misconfigured on the changelog creation endpoint, an attacker can inject false release notes under victim admin identity — claiming security fixes were applied to a version that remains vulnerable, misleading every user who reads the changelog before installing. When CORS is misconfigured on the deletion endpoint, an attacker can erase any security advisory record from the registry's public history, removing the evidence of a vulnerability disclosure that users and enterprise compliance pipelines rely on when making adoption decisions. Advisory SA-SKL-CORS61 documents four distinct vulnerabilities across these endpoints that compose naturally into a compound four-stage advisory manipulation chain, executable from a single malicious web page visited by any registry admin.
In this post
- Why changelog and release notes endpoints are high-value CORS targets
- CORS61-001 — Credential-bearing CORS on changelog exposes unpublished CVE fix timelines
- CORS61-002 — Wildcard ACAO on changelog creation enables false security release note injection
- CORS61-003 — Timing oracle on changelog draft endpoint identifies active release preparation sessions
- CORS61-004 — Credential-bearing CORS on changelog deletion erases security advisory records
- Compound advisory manipulation chain
- Detection with SkillAudit AST queries
- Summary and remediation checklist
GET /api/skills/:id/changelog allows any origin with credentials to read the full changelog including unpublished draft release notes, internal CVE fix descriptions, and scheduled release metadata — with draft entries containing pre-disclosure vulnerability details not yet coordinated with downstream consumers or the public
POST /api/skills/:id/changelog returns Access-Control-Allow-Origin: *, letting any page create attacker-controlled changelog entries under victim admin identity — injecting false security release notes that claim vulnerabilities were fixed in a version that remains vulnerable, misleading users who rely on changelog accuracy to assess upgrade safety
GET /api/skills/:id/changelog/draft reflects Origin before ownership check, creating a timing oracle that reveals draft creation velocity — identifying skills with active release preparation as the highest-value CORS61-001 targets during live admin sessions
DELETE /api/skills/:id/changelog/:entryId allows any origin with credentials to remove any changelog entry using a victim admin session — erasing security advisory records and removing the public evidence of past vulnerability disclosures relied on by enterprise compliance pipelines
Why changelog and release notes endpoints are high-value CORS targets
Changelog endpoints differ from most other endpoint classes in a skill registry because their state is the trust basis on which users make installation decisions. When a security engineer evaluates whether to adopt a community MCP skill in an enterprise pipeline, the changelog is frequently the first artifact they read — it tells them whether the skill's maintainers disclose vulnerabilities, how quickly they patch them, and whether the current version contains any outstanding security issues. Misconfiguring CORS on these endpoints does not just leak information; it allows an attacker to manipulate the signal that determines whether users trust a skill in the first place.
The draft release notes accessible before publication are particularly sensitive because they contain information that has not yet been coordinated for public release. A draft entry for a security release typically includes the internal CVE identifier or advisory number, a description of the vulnerable code path, the fix approach, and the planned disclosure date. This is the intelligence window between when a maintainer discovers a vulnerability and when it becomes public — a window during which the maintainer is working in the registry UI, their session is live, and their browser may visit attacker-controlled pages during the same browsing context. CORS61-001 targets exactly this window.
The changelog creation endpoint (CORS61-002) introduces a trust signal manipulation surface that is distinct from authentication bypasses or permission escalation. When an attacker injects a false release note claiming a vulnerability was patched in version 2.1.0, every user who reads that changelog entry before installing receives a false safety signal. The entry is indistinguishable from a legitimate security advisory — it carries the legitimate admin's user ID in the author field, appears in the correct chronological position in the registry's changelog UI, and passes any changelog integrity check that only verifies that the entry was created by an authenticated admin. Users who rely on changelog accuracy to decide whether to upgrade from a known-vulnerable version will upgrade to the same vulnerable version, believing the advisory announced the fix.
The timing oracle in CORS61-003 targets a specific operational pattern: security release notes are drafted and published in discrete preparation cycles that cluster around CVE disclosure coordination schedules — typically when the maintainer is working toward a coordinated disclosure date and needs to have the release notes ready before the embargo lifts. These are exactly the moments when the admin is working in the changelog draft UI with an authenticated session in their browser. The oracle identifies which skills are in an active release preparation cycle before the credential-read phase begins, maximizing the intelligence value of the CORS61-001 exfiltration.
CORS61-004 provides a disruption capability that extends beyond the attacker's access window. Erasing a security advisory record from the registry's changelog does not just delete historical data — it removes the signal that enterprise compliance pipelines use to verify that a skill's maintainers follow responsible disclosure practices. Many enterprise adoption policies require that a skill have a documented disclosure history before it can be used in production pipelines. Deleting historical advisory entries retroactively breaks this compliance check for any downstream consumer who re-evaluates the skill after the deletion, potentially causing an enterprise to adopt a skill whose maintainers they would have rejected based on incomplete disclosure history.
Advisory record deletion retroactively breaks compliance checks. Enterprise consumers who gate skill adoption on documented disclosure history will not detect that advisory records were deleted until they re-run their compliance evaluation. If the deletion occurs between an initial evaluation (which found the records) and a re-evaluation, the second evaluation sees an incomplete history and may flag the skill as non-compliant — or worse, an earlier compliance check may have approved the skill before the deletion, leaving the approval standing against a now-incomplete record.
CORS61-001 — Credential-bearing CORS on changelog exposes unpublished CVE fix timelines
Severity: CRITICAL | Endpoint: GET /api/skills/:id/changelog
The changelog read endpoint is configured with cors({origin:true,credentials:true}) applied at the router level. This policy reflects any Origin header as an allowed origin while simultaneously setting Access-Control-Allow-Credentials: true. Any web page can therefore issue a credentialed cross-origin request to this endpoint and receive the complete changelog document — including entries in draft state that have not yet been published to the public registry.
The practical consequence is pre-disclosure intelligence exposure. A draft changelog entry for a security release typically contains the internal advisory identifier (e.g., the GitHub Security Advisory or NVD CVE number being coordinated), a description of the vulnerable code path in enough detail to understand the attack surface, the patch approach (which may reveal the fix in enough detail to derive the vulnerability from the diff), and the scheduled public release date. Reading this information cross-origin tells an attacker when a vulnerability will be publicly disclosed — giving them an exploitation window that is precisely bounded by the disclosure schedule. If the draft shows that the advisory will go public in five days, the attacker knows they have five days to exploit every downstream system that uses the vulnerable version before defenders start patching.
Beyond draft entries, even published changelog entries may contain sensitive operational details. Entries that describe root cause analysis for security incidents may reference internal architecture decisions, infrastructure component names, or deployment patterns that are not otherwise public. Entries that link to private issue trackers may include identifiers that can be used to infer the contents of otherwise-private security discussions.
// GET /api/skills/:id/changelog — cors({origin:true,credentials:true}) at router level
const router = express.Router();
router.use(cors({ origin: true, credentials: true })); // reflects any origin with credentials
router.get('/:id/changelog', requireSession, async (req, res) => {
// returns both published AND draft entries — draft entries contain pre-disclosure CVE details
const entries = await Changelog.find({ skillId: req.params.id })
.sort({ createdAt: -1 });
return res.json(entries); // full document including draftContent, internalCveId, scheduledAt
});
// GET /api/skills/:id/changelog — per-route allowlist cors + role-scoped fields + draft gate
const ALLOWED = process.env.ALLOWED_ORIGINS.split(',');
const changelogCors = cors({ origin: ALLOWED, credentials: true });
router.get('/:id/changelog', changelogCors, requireSession, async (req, res) => {
const isAdmin = req.session.role === 'admin' || req.session.role === 'registry_admin';
// non-admin callers only see published entries — draft entries contain pre-disclosure CVE details
const filter = isAdmin
? { skillId: req.params.id }
: { skillId: req.params.id, status: 'published' };
const entries = await Changelog.find(filter)
.sort({ createdAt: -1 })
.select(isAdmin
? '+entryId +title +body +status +scheduledAt -internalCveId -draftContent'
: '+entryId +title +body +publishedAt -status -scheduledAt -internalCveId -draftContent');
return res.json(entries.map(e => ({
id: e.entryId,
title: e.title,
body: e.body,
publishedAt: isAdmin ? undefined : e.publishedAt,
status: isAdmin ? e.status : undefined,
scheduledAt: isAdmin ? e.scheduledAt : undefined,
// internalCveId and draftContent intentionally omitted for all callers
})));
});
The fix applies CORS on a per-route basis using an explicit allowlist. Non-admin callers receive only published entries — the status: 'published' filter prevents draft entries from appearing in cross-origin read responses. Admin callers can read draft entries and scheduled release dates, but the response schema always omits internalCveId and raw draftContent — these fields are only accessible via a separate admin-only single-entry detail endpoint protected by additional audit logging. This ensures that even a compromised admin session, reached via CORS from a third-party page, cannot extract pre-disclosure CVE identifiers from the changelog API.
CORS61-002 — Wildcard ACAO on changelog creation enables false security release note injection
Severity: CRITICAL | Endpoint: POST /api/skills/:id/changelog
The changelog creation endpoint returns Access-Control-Allow-Origin: * regardless of the requesting origin. The endpoint requires a valid session via requireSession middleware. The wildcard ACAO means that any web page can submit a changelog creation request using the victim admin's browser session, with the attacker controlling the full entry payload: the title, body, security classification, affected versions, and whether to publish immediately or schedule for a future date.
The attack creates a trust inversion that is difficult to detect after the fact. Consider a skill at version 2.1.0 that has a known SQL injection vulnerability in its database query construction path. An attacker who injects a changelog entry claiming "v2.1.0 — Security patch: SQL injection in query builder (CVE-2026-XXXX) — fixed" causes every user who reads the registry's changelog UI to believe that version 2.1.0 is safe. Users upgrading to 2.1.0 from an older version will see the security advisory entry and conclude that the upgrade addresses a known vulnerability — when in fact 2.1.0 is the vulnerable version the advisory claims to have fixed.
The audit log attribution problem is specifically damaging. When a security engineer investigates why a skill's changelog contains a fraudulent advisory, the entry is attributed to a legitimate admin's user ID at a time when that admin had an active session, with an HTTP method and endpoint path consistent with normal changelog management behavior. Without origin-field auditing, the investigation cannot distinguish the injected entry from a legitimately authored one. The entry appears in every diff, compliance report, and changelog review exactly as a real advisory would, and remains in place until manually identified and removed.
False security release notes deceive downstream compliance pipelines. Enterprise CI systems that gate deployment on "has a security advisory been issued for installed versions" will read the injected entry and conclude the advisory has been addressed — even if no patch was actually applied. Any automated tooling that parses changelog entries to track which CVEs have been addressed will record the false entry alongside legitimate advisories.
// POST /api/skills/:id/changelog — ACAO:* from upstream cors() middleware
// No CSRF check, no role boundary, no Zod schema, no audit log origin
router.post('/:id/changelog', requireSession, async (req, res) => {
const { title, body, type, affectedVersions, publishNow } = req.body;
const entry = await Changelog.create({
skillId: req.params.id,
authorId: req.session.userId, // attributed to victim admin
title, // attacker-controlled
body, // attacker-controlled security advisory text
type, // attacker-controlled: 'security' | 'feature' | 'fix'
affectedVersions, // attacker-controlled CVE version range
status: publishNow ? 'published' : 'draft',
publishedAt: publishNow ? new Date() : null,
});
return res.status(201).json(entry);
});
// POST /api/skills/:id/changelog — allowlist cors + requireRole + CSRF + Zod + audit log
import { z } from 'zod';
const ChangelogEntrySchema = z.object({
title: z.string().min(1).max(256),
body: z.string().min(1).max(16384),
type: z.enum(['security', 'feature', 'fix', 'deprecation', 'breaking']),
affectedVersions: z.array(z.string().max(64)).max(20).optional(),
publishNow: z.boolean().optional().default(false),
scheduledAt: z.string().datetime().optional(),
internalCveId: z.string().max(64).optional(), // only stored, never returned in list responses
});
router.post(
'/:id/changelog',
changelogCors, // per-route allowlist (from CORS61-001 fix)
requireSession,
requireRole('admin'),
verifyCsrf,
async (req, res) => {
const parsed = ChangelogEntrySchema.safeParse(req.body);
if (!parsed.success) return res.status(400).json({ error: 'Invalid entry payload', issues: parsed.error.issues });
const entry = await Changelog.create({
skillId: req.params.id,
authorId: req.session.userId,
title: parsed.data.title,
body: parsed.data.body,
type: parsed.data.type,
affectedVersions: parsed.data.affectedVersions ?? [],
status: parsed.data.publishNow ? 'published' : 'draft',
publishedAt: parsed.data.publishNow ? new Date() : null,
scheduledAt: parsed.data.scheduledAt ?? null,
internalCveId: parsed.data.internalCveId ?? null,
});
await AuditLog.create({
action: 'changelog.created',
actorId: req.session.userId,
skillId: req.params.id,
entryId: entry.id,
entryType: parsed.data.type,
origin: req.headers.origin,
at: new Date(),
});
return res.status(201).json({ id: entry.id });
}
);
The fix applies five controls. Per-route allowlist CORS removes the wildcard ACAO. requireRole('admin') ensures only admins can create changelog entries. CSRF token verification prevents cross-site form injection. Zod ChangelogEntrySchema validates the entry payload against an enum of allowed types — security, feature, fix, deprecation, breaking — and enforces size limits on body content. The audit log records the origin header alongside the acting user ID, enabling detection of entries created from unexpected origins even when they carry a valid session.
CORS61-003 — Timing oracle on changelog draft endpoint identifies active release preparation sessions
Severity: MEDIUM | Endpoint: GET /api/skills/:id/changelog/draft
The changelog draft endpoint reflects the Origin header as the value of Access-Control-Allow-Origin before the ownership check executes. This creates a timing oracle: the endpoint serves cached results for skills with high draft creation activity from an in-memory LRU cache maintained by the draft aggregation pipeline in under 5 ms, while skills with low or no draft activity require a full database query that takes 20–50 ms. The latency difference is cross-origin-detectable even without reading the response body — the browser measures the round-trip time of the OPTIONS preflight followed by the GET and derives whether the skill is in an active release preparation cycle from the response time alone.
The timing oracle serves a specific role in the compound attack chain: it identifies which skills are currently preparing security releases before the CORS61-001 credential-read phase begins. Skills that show high draft creation velocity in the cache are those whose maintainers are actively working in the changelog draft UI — their session is live, their browser is open to the registry domain, and they are likely to visit attacker-controlled pages during the same browsing session that holds the authenticated session. These are the highest-value CORS61-001 targets. An attacker probing 100 skills in parallel with cross-origin timing requests can identify in a single round-trip which skills have active release preparation cycles before issuing any credential-bearing requests.
// GET /api/skills/:id/changelog/draft — Origin reflected before auth
router.get('/:id/changelog/draft', async (req, res) => {
// CORS header emitted before ANY ownership check
res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
// ownership check runs AFTER CORS header emission
const skill = await Skill.findById(req.params.id);
if (!skill || skill.ownerId !== req.session?.userId) {
return res.status(403).json({ error: 'Forbidden' });
}
// cache hit: <5ms (active draft cycle); cache miss: 20-50ms — detectable via RTT
const drafts = draftCache.get(req.params.id)
|| await Changelog.find({ skillId: req.params.id, status: 'draft' });
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();
// ownership check BEFORE any CORS header is emitted
const skill = await Skill.findOne({
_id: req.params.id,
ownerId: req.session.userId, // unified WHERE — eliminates 403 vs 404 timing channel
});
if (!skill) {
await sleep(Math.max(0, 60 - (Date.now() - start)));
return res.status(404).json({ error: 'Not found' });
}
// apply allowlist CORS only after auth succeeds
changelogCors(req, res, async () => {
const drafts = draftCache.get(req.params.id)
|| await Changelog.find({ skillId: req.params.id, status: 'draft' });
// 60ms constant-time floor eliminates cache-hit vs DB-query differential
await sleep(Math.max(0, 60 - (Date.now() - start)));
return res.json(drafts);
});
});
The 60 ms floor eliminates the cache-hit versus database-query timing differential. The unified _id + ownerId WHERE clause prevents the secondary oracle where a 403 (skill exists, wrong owner) has different latency than a 404 (skill does not exist) due to query plan differences. Both negative cases sleep to the same response floor before returning. The critical ordering change — auth before CORS emission — means that an unauthenticated or non-owner request never receives a CORS-permitted response at all, so no timing measurement is possible from a third-party page.
CORS61-004 — Credential-bearing CORS on changelog deletion erases security advisory records
Severity: CRITICAL | Endpoint: DELETE /api/skills/:id/changelog/:entryId
The changelog deletion endpoint shares the same router-level cors({origin:true,credentials:true}) policy as CORS61-001. Any web page can issue a credentialed DELETE request to this endpoint using the victim admin's browser session. The endpoint performs no ownership check — it deletes any changelog entry by ID without verifying that the caller administered the entry or that they have authority over the skill in question.
The practical consequence is retroactive trust signal manipulation. A security advisory record in a skill's changelog is not just historical data — it is evidence that a vulnerability was discovered and disclosed, evidence that enterprise compliance pipelines use to evaluate whether a skill's maintainers follow responsible disclosure practices. Deleting a security advisory record does not undo the vulnerability it described; it removes the documentation that tells downstream consumers the vulnerability was ever disclosed. Any consumer who evaluates the skill's disclosure history after the deletion sees an incomplete record — they may conclude the skill has never had a security issue, when in fact the issue existed and was quietly removed from the history.
The absence of a notification mechanism on the deletion endpoint extends the attacker's access window. The legitimate skill maintainer has no automated signal that their advisory records have been removed. They discover the deletion only when downstream consumers report inconsistencies between the changelog and the skill's vulnerability scanner results, or when a compliance audit reveals gaps in the disclosure timeline — a process that can take days or weeks depending on how frequently the team audits changelog state.
No soft-delete means advisory records are unrecoverable. Unlike database records that can be restored from backups, a changelog entry that is hard-deleted and replicated to downstream CDN caches or mirror sites cannot be reliably recovered without a complete audit log trail. If the audit log does not capture the origin header on deletion events, the deletion is indistinguishable from a legitimate admin cleanup action — recovery requires manually cross-referencing backup snapshots against current state, which may not be operationally feasible.
// DELETE /api/skills/:id/changelog/:entryId
// cors({origin:true,credentials:true}) from router.use()
// No ownership check, no audit log, no notification, no soft-delete protection
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 + soft-delete guard + audit log + notification
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 isAdmin = req.session.role === 'admin' || req.session.role === 'registry_admin';
const isAuthor = String(entry.authorId) === req.session.userId;
if (!isAdmin && !isAuthor) {
return res.status(403).json({ error: 'Forbidden' });
}
// soft-delete published security entries — preserve audit trail
if (entry.type === 'security' && entry.status === 'published') {
await entry.updateOne({ deletedAt: new Date(), deletedBy: req.session.userId });
// published security entries are hidden from public changelog but preserved for compliance queries
} else {
await entry.deleteOne();
}
await AuditLog.create({
action: 'changelog.deleted',
actorId: req.session.userId,
entryId: req.params.entryId,
skillId: req.params.id,
entryType: entry.type,
entryStatus: entry.status,
origin: req.headers.origin,
at: new Date(),
});
// notify skill owner when deletion is performed by a third party (admin deleting another author's entry)
if (!isAuthor) {
await notify(entry.authorId, {
type: 'changelog.deleted',
entryId: req.params.entryId,
skillId: req.params.id,
by: req.session.userId,
entryType: entry.type,
});
}
return res.status(204).end();
});
The fix introduces a critical distinction for published security entries: they receive a soft-delete treatment rather than hard deletion. The deletedAt and deletedBy fields are set, and the entry is hidden from the public changelog response, but the record is preserved for compliance queries and audit log reconstruction. Draft and non-security entries are hard-deleted as before. This ensures that the audit trail for security advisories is never irrecoverably destroyed, even if the deletion is performed via a CORS attack. The notification mechanism alerts the original entry author when deletion is performed by a third party — the notification includes the deleting actor's ID and the origin header, enabling rapid detection of cross-origin deletion attacks.
Compound advisory manipulation chain
The four vulnerabilities in SA-SKL-CORS61 compose naturally into a four-stage attack chain executed entirely from a single malicious web page visited by any registry admin:
| Stage | Finding | Action | Output used by |
|---|---|---|---|
| 1 — Target identification | CORS61-003 | Probe 100 skill IDs in parallel, measure changelog draft response latency, identify skills with high draft creation velocity — indicating live admin sessions preparing security release notes under NDA or coordinated disclosure schedules | Target list of skills with active release preparation cycles for Stage 2 CVE exfiltration |
| 2 — CVE timeline exfiltration | CORS61-001 | Read full changelog including draft entries for high-velocity skills; extract internal CVE identifiers, vulnerability descriptions, and scheduled disclosure dates — establishing the exploitation window before public announcement | Pre-disclosure CVE intelligence; existing entry IDs for Stage 4 deletion; skill version information for Stage 3 injection targeting |
| 3 — False advisory injection | CORS61-002 | Create changelog entries of type 'security' claiming vulnerabilities were fixed in the currently-vulnerable version; set publishNow=true to make them immediately visible in the registry UI; audit log attributes to victim admin identity | False trust signals visible to all users evaluating the skill; audit trail framing victim as advisory author |
| 4 — Advisory record deletion | CORS61-004 | Delete existing legitimate security advisory records identified in Stage 2; skills' disclosure history becomes incomplete — enterprise compliance pipelines re-evaluating the skill no longer see evidence of past vulnerability disclosures | Elimination of legitimate security history; compliance pipeline bypass for enterprise consumers who had previously approved the skill based on complete disclosure records |
The chain is self-reinforcing at each stage. The timing oracle in Stage 1 identifies which admins are actively preparing security releases, maximizing the probability that the victim's session is live when Stages 2 through 4 execute — the admin is in the registry UI, their browser is active, and they are likely to visit external pages during their session. Stage 2 provides the specific CVE identifiers and version numbers needed for Stage 3 to inject convincing false advisories — an injected entry that accurately references the real CVE number, the real affected version range, and a plausible fix description is far more difficult to identify as fraudulent than a generic false entry. Stage 3 creates injected false advisories that make the skill appear safer than it is, while Stage 4 simultaneously removes the evidence that the legitimate advisory was ever filed — leaving users with a falsely complete-looking changelog that shows only the injected positive entries.
The audit log is not a sufficient defense without origin-field alerting. CORS61-002 and CORS61-004 both create audit log entries, but those entries attribute actions to the legitimate admin's user ID. An audit log review will show the admin creating security advisories and deleting changelog entries — both of which are consistent with normal release management behavior. Only the origin field in the audit record reveals that the action originated from an unexpected page. Organizations that do not monitor or alert on origin anomalies in changelog mutation events will not detect this attack from their audit logs alone.
Detection with SkillAudit AST queries
SkillAudit's static analysis engine detects the three CORS patterns that compose this advisory using AST-level queries against your skill registry source code. The queries identify vulnerable code at the declaration site — where cors() is configured and where CORS headers are emitted relative to auth middleware — rather than at the call site, which is where runtime security scanners typically look.
Three query classes cover SA-SKL-CORS61:
Query class 1 — cors_credentials_true_on_changelog_read. Detects cors({origin:true,credentials:true}) applied to GET routes whose path segments match /changelog patterns. The query walks the Express middleware chain for each matching route and flags both router-level application (which propagates to all child routes including changelog list, single entry detail, and draft endpoints) and per-route application on sensitive read endpoints. It also flags the case where the CORS configuration omits explicit draft filtering — a changelog GET endpoint that returns both draft and published entries to any origin is flagged even if the CORS policy is otherwise configured correctly, because the missing draft gate is the proximate cause of pre-disclosure exposure.
Query class 2 — wildcard_acao_on_changelog_write. Detects Access-Control-Allow-Origin: * set via res.setHeader, res.set, or applied via a cors() call on POST routes for changelog creation endpoints. The query matches route handler declarations with path patterns containing changelog and POST HTTP method bindings, and flags any CORS configuration that emits a wildcard or reflect-all origin on those routes. This covers both explicit ACAO: * headers and cors({origin:'*'}) equivalents that libraries may normalize to wildcard responses. It additionally flags the absence of a requireRole check on changelog write routes — the combination of wildcard CORS and no role boundary is the full attack surface, and fixing only the CORS policy without adding the role gate leaves the injection path partially open to lower-privilege sessions.
Query class 3 — origin_reflection_before_auth_changelog_draft. Detects res.set('Access-Control-Allow-Origin', req.headers.origin), res.setHeader('Access-Control-Allow-Origin', ...), or any CORS middleware invocation that precedes a requireSession, verifyToken, or equivalent auth middleware call in the same route's handler chain for paths matching /changelog/draft or /changelog/drafts. The query models the Express middleware chain as an ordered list and checks the relative position of CORS-emitting statements against session-verification statements — the vulnerability exists when CORS emission precedes auth in that order, regardless of the specific CORS or auth library used.
These queries are available in SkillAudit's CORS rule pack alongside the full SA-SKL-CORS61 advisory. For teams scanning the broader CORS surface of their MCP skill registries, the same pack includes rules for version pinning and dependency lock endpoints (SA-SKL-CORS59) and the full endpoint surface documented in earlier advisories, covering the complete content and version management attack surface with consistent query semantics. Join the waitlist to run these queries against your registry codebase.
Summary and remediation checklist
SA-SKL-CORS61 documents four CORS misconfigurations in MCP skill registry changelog and release notes management endpoints that together enable a compound advisory manipulation chain. All four vulnerabilities stem from the same root cause: CORS policy is applied at the router level using a reflect-all configuration rather than on individual routes using an explicit origin allowlist, with no draft-state gate on read responses, no role boundary on write operations, no ownership verification, no audit log on destructive operations, and no soft-delete protection for published security advisory records.
| Finding | Severity | Root cause | Fix summary |
|---|---|---|---|
| CORS61-001 | Critical | cors({origin:true,credentials:true}) at router level on changelog read; draft entries with pre-disclosure CVE details returned to any origin |
Per-route allowlist CORS; non-admin callers receive only published entries; never return internalCveId or draftContent in list responses |
| CORS61-002 | Critical | ACAO: * on changelog creation endpoint; no CSRF check; no role boundary; no audit log origin field |
Allowlist CORS; requireRole('admin'); verifyCsrf; Zod ChangelogEntrySchema (enum of security/feature/fix/deprecation/breaking); audit log with origin |
| CORS61-003 | Medium | Origin reflected before ownership check on changelog draft endpoint; cache-hit timing differential detectable cross-origin | Auth before CORS emission; unified WHERE clause; 60 ms constant-time response floor |
| CORS61-004 | Critical | cors({origin:true,credentials:true}) on changelog deletion; no ownership check; no audit log; no notification; hard-delete of published security entries |
Per-route allowlist CORS; author or admin check; soft-delete published security entries; audit log with origin on all deletion events; notify entry author on third-party deletion |
Remediation checklist.
☐ Replace router-level cors({origin:true,credentials:true}) with per-route allowlist cors on all changelog endpoints
☐ Add draft-state gate to changelog read endpoint — non-admin callers receive only published entries
☐ Never return internalCveId or draftContent in list responses for any caller role
☐ Remove ACAO: * from changelog creation endpoint; add requireRole('admin') + verifyCsrf + Zod ChangelogEntrySchema
☐ Move auth execution before CORS header emission on changelog draft endpoint
☐ Enforce 60 ms constant-time response floor on changelog draft endpoint
☐ Add ownership check and author notification to DELETE /changelog/:entryId
☐ Soft-delete published security changelog entries rather than hard-deleting — set deletedAt/deletedBy, hide from public responses, preserve for compliance queries
☐ Add audit log with origin header to all changelog mutation events
☐ Alert on origin anomalies in changelog creation and deletion audit log events
☐ Run SkillAudit scanner to detect all three AST query class violations