← Blog

CORS Misconfigurations in MCP Skill Registry Dependency Vulnerability Scanning and Patch Management Endpoints

Dependency vulnerability scanning endpoints occupy a uniquely high-stakes position in the operational security infrastructure of an MCP skill registry. They are the first line of defense between a skill's maintainers and the production systems where that skill runs — the mechanism by which the team learns that a dependency contains a known CVE, determines which versions are affected, tracks whether a patch has been applied, and decides whether an active exploit warrants immediate emergency patching versus a scheduled maintenance window. When CORS is misconfigured on these endpoints, an attacker does not just read sensitive data or perform unauthorized actions; they obtain the intelligence that powers the registry's internal vulnerability response pipeline and then systematically disable that pipeline's ability to detect and respond to threats. Advisory SA-SKL-CORS63 documents four distinct CORS vulnerabilities across vulnerability scanning and patch management endpoints that compose into a compound four-stage attack chain: a timing oracle that identifies skills with active vulnerability management cycles, a credential-bearing read that exfiltrates embargoed CVE intelligence before public disclosure, a wildcard-ACAO write that suppresses critical CVE alerts silently under victim admin identity, and a credential-bearing delete that destroys scan result evidence — all executable from a single malicious web page visited by any registry admin.

By SkillAudit  |  21 Nov 2026  |  25 min read

In this post

  1. Why vulnerability scanning endpoints are high-value CORS targets
  2. CORS63-001 — Credential-bearing CORS on vulnerability scan results exposes embargoed CVE intelligence
  3. CORS63-002 — Wildcard ACAO on suppression endpoint enables silent CVE alert disabling
  4. CORS63-003 — Timing oracle on scan schedule endpoint identifies active vulnerability management cycles
  5. CORS63-004 — Credential-bearing CORS on scan result deletion erases vulnerability evidence
  6. Compound attack chain
  7. Detection with SkillAudit AST queries
  8. Summary and remediation checklist
Advisory SA-SKL-CORS63 — Findings at a glance
Critical CORS63-001 — GET /api/skills/:id/vulnerability-scan has cors({origin:true,credentials:true}) applied at router level, allowing any origin with credentials to read full vulnerability scan results including unpublished CVE identifiers, embargoed CVSS scores, and complete affected dependency trees — exposing pre-disclosure intelligence, internal vulnerability management backlogs, patch priorities, and embargoed CVE identifiers before public announcement
Critical CORS63-002 — POST /api/skills/:id/vulnerability-scan/suppress returns Access-Control-Allow-Origin: *, letting any page create attacker-controlled CVE suppression entries under victim admin identity — silencing critical vulnerability alerts for target skills and preventing the scanner from alerting the team to active exploits in production dependencies
Medium CORS63-003 — GET /api/skills/:id/vulnerability-scan/schedule reflects Origin before ownership check, creating a timing oracle that reveals scan schedule modification velocity — identifying skills with active vulnerability management cycles as the highest-value CORS63-001 targets during live admin sessions
Critical CORS63-004 — DELETE /api/skills/:id/vulnerability-scan/results/:resultId has cors({origin:true,credentials:true}) from router-level middleware, allowing any origin to remove any scan result using a victim admin session — erasing evidence of vulnerability findings and preventing patch tracking systems from detecting remediation gaps

Why vulnerability scanning endpoints are high-value CORS targets

Vulnerability scanning endpoints differ categorically from most other endpoint classes in an MCP skill registry because their state is the operational foundation of the team's security response capability. A changelog endpoint leaks historical trust signals; a vulnerability scan endpoint leaks the current threat picture. When an attacker reads the latest scan results for a skill, they learn not just which CVEs affect that skill's dependencies today, but how the team is prioritizing response — which CVEs are marked as high-urgency, which patches have been applied but not yet deployed, and critically, which CVEs are still under embargo and have not yet been coordinated for public disclosure. This pre-disclosure intelligence is the most time-sensitive security data in the registry's operational stack.

The embargoed CVE window is the specific threat surface that makes CORS63-001 particularly severe. When a security researcher reports a vulnerability to a dependency maintainer, there is typically a coordinated disclosure window — often 90 days — during which the dependency maintainer prepares a fix, the reporting researcher holds the details, and downstream consumers like MCP skill maintainers are notified under embargo so they can prepare patches before the vulnerability becomes public knowledge. During this embargo window, the vulnerability scan results for affected skills will contain the embargoed CVE identifier, the embargoed CVSS score (which may differ significantly from the public score when it is eventually assigned), and the full affected dependency tree showing every transitive dependency that pulls in the vulnerable package. An attacker who reads this data before public disclosure knows which software is vulnerable and roughly how severe the vulnerability is, days or weeks before defenders in unaffected organizations begin patching.

The suppression endpoint (CORS63-002) introduces a threat capability that is architecturally distinct from information leakage: it allows an attacker to actively degrade the registry's vulnerability detection capability without leaving visible traces in the UI. A suppression entry tells the vulnerability scanner "do not alert on this CVE for this skill." Legitimate suppressions exist for valid reasons — a dependency may be vulnerable in a code path that the skill never exercises, or the team may have implemented a compensating control that makes the vulnerability unexploitable in their specific deployment configuration. But a suppression created by an attacker under victim admin identity looks identical to a legitimate suppression. The scanner stops alerting. The team does not know the alert was silenced. The vulnerable dependency remains in production. If the CVE being suppressed is for a component with an active exploit in the wild, the team's window for detecting and responding to compromise narrows to zero — their own tooling has been turned against them.

The scan result deletion endpoint (CORS63-004) compounds the suppression attack by operating at the evidence layer. A suppression prevents future alerts; a scan result deletion removes historical evidence that the vulnerability was ever detected. Patch tracking systems that compare current scan results against historical baselines to verify that remediation was applied cannot detect gaps in remediation if the original scan result that documented the finding no longer exists. Security audits that review the team's response to vulnerability findings cannot evaluate whether response timelines were appropriate if the initial detection event has been deleted. The combination of suppression (no future alerts) and result deletion (no historical record) creates a vulnerability management blind spot that may persist indefinitely without any automated detection mechanism.

Suppression plus deletion creates a persistent blind spot with no automated recovery path. When an attacker suppresses a CVE alert and deletes the scan result that first detected it, the vulnerability management pipeline loses two distinct signals simultaneously: the future alerting path (suppressed) and the historical detection record (deleted). Patch tracking systems, security audit workflows, and compliance reports that depend on the continuous scan history will all show a gap. The only recovery path is a full re-scan followed by manual review of the suppression list — a process that requires knowing there is a problem to investigate, which the attacker's actions are specifically designed to prevent.

CORS63-001 — Credential-bearing CORS on vulnerability scan results exposes embargoed CVE intelligence

Severity: CRITICAL  |  Endpoint: GET /api/skills/:id/vulnerability-scan

The vulnerability scan read endpoint is configured with cors({origin:true,credentials:true}) applied at the router level. This policy reflects any Origin header as a permitted origin while simultaneously asserting Access-Control-Allow-Credentials: true. Any web page — including attacker-controlled pages visited by an admin during their active session — can issue credentialed cross-origin requests to this endpoint and receive the complete vulnerability scan result set for any skill.

The practical severity is determined by the content of the scan results. The VulnScan document schema stores two categories of CVE identifiers: cveId (the public CVE number, assigned after embargo lifts) and embargoedCveId (the internal tracking identifier used before the public CVE number is assigned). During the embargo window, the scan result carries only the embargoed identifier — but that identifier is sufficient to allow an attacker who has access to the reporter's or vendor's advisory tracking systems to correlate it with the full vulnerability details before public announcement. The document also stores embargoedCvss (the CVSS score calculated during triage, which may be higher than the eventual public score) and internalNotes (the team's operational notes on the vulnerability including patch timeline, affected deployment environments, and compensating controls). None of these fields should be accessible from arbitrary origins under any session.

Beyond the embargoed fields, the endpoint returns the complete affectedVersions array and patchedVersion value for each finding. For skills that have patched a vulnerability but not yet announced the patch, this reveals the patched version number before the team is ready to publish the advisory — allowing an attacker to infer the fix by diffing the patched and unpatched versions. For skills that have not yet patched, it reveals the exact version range that remains vulnerable across all installations of the skill, enabling targeted attacks against known-vulnerable deployments. The combination of a credentialed CORS policy that reflects any origin and a response schema that includes these fields makes the endpoint a comprehensive intelligence feed for anyone who can get an admin to visit their page.

Embargoed CVE identifiers in scan results are pre-disclosure intelligence. The embargoed CVE ID stored in a scan result during the coordinated disclosure window is not just sensitive data — it is a timed intelligence asset. Its value decays to zero when the CVE is publicly announced, but during the embargo window it tells an attacker which software is vulnerable, approximately how severe the vulnerability is (from the embargoed CVSS), and how the affected skill's team is responding (from internalNotes). An attacker who exfiltrates this data via CORS63-001 can exploit every downstream system running the vulnerable dependency before any public patch guidance is available.

Vulnerable
// GET /api/skills/:id/vulnerability-scan — cors({origin:true,credentials:true}) at router level
router.use(cors({ origin: true, credentials: true }));
router.get('/:id/vulnerability-scan', requireSession, async (req, res) => {
  const results = await VulnScan.find({ skillId: req.params.id }).sort({ detectedAt: -1 });
  return res.json(results);  // exposes embargoed CVE IDs, unpublished CVSS scores, full dep tree
});
Fixed
const ALLOWED = process.env.ALLOWED_ORIGINS.split(',');
const vulnCors = cors({ origin: ALLOWED, credentials: true });
router.get('/:id/vulnerability-scan', vulnCors, requireSession, requireRole('admin'), async (req, res) => {
  const results = await VulnScan.find({ skillId: req.params.id, embargoed: false })
    .select('+cveId +cvss +affectedVersions +patchedVersion -embargoedCveId -embargoedCvss -internalNotes')
    .sort({ detectedAt: -1 });
  return res.json(results.map(r => ({
    cveId: r.cveId, cvss: r.cvss, severity: r.severity,
    affectedVersions: r.affectedVersions, patchedVersion: r.patchedVersion,
    // embargoedCveId and internalNotes intentionally omitted
  })));
});

The fix applies three independent controls. First, the CORS policy is replaced on a per-route basis with an explicit allowlist sourced from an environment variable — no other origin receives a CORS-permitted response. Second, requireRole('admin') is added to the middleware chain, ensuring that only admin-role sessions can access vulnerability scan data at all. Third, the query explicitly filters out embargoed findings (embargoed: false) and the response serialization omits embargoedCveId, embargoedCvss, and internalNotes from the response payload entirely — these fields are only accessible via a separate internally-routed audit endpoint that requires an additional layer of authentication and is not exposed to the public API surface. The explicit results.map() serialization ensures that schema changes adding new sensitive fields do not accidentally leak them through an overly permissive toJSON transform.

CORS63-002 — Wildcard ACAO on suppression endpoint enables silent CVE alert disabling

Severity: CRITICAL  |  Endpoint: POST /api/skills/:id/vulnerability-scan/suppress

The suppression creation endpoint returns Access-Control-Allow-Origin: * regardless of the requesting origin — this wildcard is emitted by the upstream cors() middleware configured at an application level above the router. The endpoint requires a valid session via requireSession but imposes no role boundary: any authenticated user, including skill owners without security operations responsibilities, can create a suppression entry. The request body is consumed directly from req.body without schema validation — the cveId, justification, and expiresAt fields are accepted as arbitrary strings with no format enforcement, no length limits, and no constraint on which CVE IDs may be suppressed.

The attack creates a vulnerability management blind spot that is operationally indistinguishable from a legitimate suppression action. When an attacker submits a suppression request via a cross-origin form submission from their page — using the victim admin's session, which the browser attaches automatically because the endpoint accepts wildcard CORS — the resulting suppression entry carries the victim admin's user ID in createdBy, a plausible justification string in justification, and a CVE ID targeting any vulnerability the attacker wishes to silence. The scanner evaluates the suppression list before alerting and finds the entry. It stops alerting. The team's monitoring dashboards go quiet on that CVE for that skill. If the CVE being suppressed is for a component with a known active exploit — a recently published RCE in a popular deserialization library, for example — the team loses their primary automated detection mechanism for that specific threat at exactly the moment the threat landscape demands heightened attention.

The absence of a maxSeverity constraint in the unpatched endpoint is particularly dangerous. Legitimate suppression workflows almost universally include the concept that CRITICAL-severity CVEs require additional human review before suppression — the operational rationale is that the blast radius of silencing a CRITICAL alert is large enough to warrant manual verification that the suppression is intentional and appropriate. By accepting any CVE at any severity without validation, the endpoint allows an attacker to suppress CRITICAL-severity alerts with the same ease as LOW-severity informational findings. The lack of CSRF protection extends the attack surface beyond cross-origin JavaScript requests to include cross-site form submissions from any HTML page, including those served by HTTP origins that cannot read the response but can still trigger the state change.

Suppressing a CRITICAL CVE with an active exploit silences the primary alerting path. Vulnerability scanners that suppress CVE alerts based on a suppression list will not re-alert on that CVE-skill combination until the suppression expires or is manually removed. If the suppression entry omits an expiresAt value — which the unpatched endpoint allows — the suppression is permanent. A team relying on their scanner to alert them to active exploitation of a known CVE in production will receive no alert. The only recovery path is a manual audit of the suppression list, which requires knowing that the suppression was created maliciously — a fact that the audit log does not reveal without origin-field inspection.

Vulnerable
// POST /api/skills/:id/vulnerability-scan/suppress — ACAO:* from upstream cors() middleware
router.post('/:id/vulnerability-scan/suppress', requireSession, async (req, res) => {
  const { cveId, justification, expiresAt } = req.body;
  const entry = await Suppression.create({
    skillId: req.params.id, createdBy: req.session.userId,
    cveId, justification, expiresAt,
  });
  return res.status(201).json(entry);
});
Fixed
const SuppressionSchema = z.object({
  cveId:         z.string().regex(/^CVE-\d{4}-\d{4,}$/),
  justification: z.string().min(20).max(2000),
  expiresAt:     z.string().datetime().optional(),
  maxSeverity:   z.enum(['LOW', 'MEDIUM', 'HIGH']),  // CRITICAL suppressions require extra review
});
router.post('/:id/vulnerability-scan/suppress', vulnCors, requireSession,
  requireRole('security_admin'), verifyCsrf, async (req, res) => {
    const parsed = SuppressionSchema.safeParse(req.body);
    if (!parsed.success) return res.status(400).json({ error: 'Invalid suppression payload', issues: parsed.error.issues });
    const entry = await Suppression.create({ skillId: req.params.id, createdBy: req.session.userId, ...parsed.data });
    await AuditLog.create({ action: 'vuln.suppression.created', actorId: req.session.userId,
      skillId: req.params.id, suppressionId: entry.id, cveId: parsed.data.cveId,
      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('security_admin') ensures that only the security operations role — a role distinct from general admin — can create suppressions, adding a role boundary that limits the blast radius of any compromised session. CSRF token verification prevents cross-site form injection. Zod SuppressionSchema enforces the CVE ID format with a regex (/^CVE-\d{4}-\d{4,}$/), enforces a minimum justification length of 20 characters to prevent trivial suppression payloads, and critically, enforces the maxSeverity enum to ['LOW', 'MEDIUM', 'HIGH'] — CRITICAL-severity suppressions are explicitly blocked at the validation layer and require a separate out-of-band approval workflow. The audit log records the requesting origin alongside the acting user ID and suppressed CVE ID, enabling detection of suppressions created from unexpected origins even when they carry a valid session. The response omits the full entry document, returning only the generated id, to prevent the creation endpoint from functioning as a secondary read path for suppression details.

CORS63-003 — Timing oracle on scan schedule endpoint identifies active vulnerability management cycles

Severity: MEDIUM  |  Endpoint: GET /api/skills/:id/vulnerability-scan/schedule

The scan schedule endpoint reflects the Origin header as the value of Access-Control-Allow-Origin before the ownership check executes. The route handler emits CORS headers at the top of the function body, before any session validation, before any database query, before any ownership verification — this ordering means that the browser treats the response as CORS-permitted and measures the full round-trip time before the access decision has been made. The access decision itself takes variable time: skills that have recently had their scan schedule modified are served from an in-memory scanScheduleCache in under 10 ms, while skills with no recent modifications require a full ScanSchedule.findOne() query that takes 25–60 ms depending on database load.

The timing oracle serves a specific reconnaissance function in the compound attack chain: it identifies which skills are currently in an active vulnerability management cycle. The scan schedule is modified frequently when a team is actively triaging vulnerability findings — they adjust scan frequency, modify which dependency registries to check, and tune the schedule around embargo disclosure windows. High cache-hit velocity on the schedule endpoint is a proxy signal for active vulnerability triage activity, which in turn means the skill's admin is likely in the registry UI with a live session. These are the highest-value targets for CORS63-001 credential-bearing reads: the admin's session is active, they are navigating between registry pages, and the probability that they will visit an external page during their current browsing session is elevated compared to an admin who last logged in three days ago.

The timing oracle operates entirely without reading the response body. The browser's measurement of the OPTIONS preflight plus GET round-trip time is sufficient to distinguish cache hits (fast path, active management cycle) from cache misses (slow path, low-activity skills). An attacker probing 500 skill IDs in parallel across 10 concurrent fetch calls can characterize the entire registry's vulnerability management activity distribution in a single round-trip burst — building a ranked target list ordered by scan schedule modification recency before issuing any credential-bearing requests. The oracle also reveals a secondary channel: the difference in latency between a 403 response (skill exists, ownership check failed) and a 404 response (skill does not exist) allows the attacker to enumerate which skill IDs exist without enumerating the registry's public skill listing.

Vulnerable
router.get('/:id/vulnerability-scan/schedule', async (req, res) => {
  res.setHeader('Access-Control-Allow-Origin', req.headers.origin || '*');
  res.setHeader('Access-Control-Allow-Credentials', 'true');
  const skill = await Skill.findById(req.params.id);
  if (!skill || skill.ownerId !== req.session?.userId) return res.status(403).json({ error: 'Forbidden' });
  const schedule = scanScheduleCache.get(req.params.id) || await ScanSchedule.findOne({ skillId: req.params.id });
  return res.json(schedule);
});
Fixed
router.get('/:id/vulnerability-scan/schedule', requireSession, async (req, res) => {
  const start = Date.now();
  const skill = await Skill.findOne({ _id: req.params.id, ownerId: req.session.userId });
  if (!skill) { await sleep(Math.max(0, 60 - (Date.now() - start))); return res.status(404).json({ error: 'Not found' }); }
  vulnCors(req, res, async () => {
    const schedule = scanScheduleCache.get(req.params.id) || await ScanSchedule.findOne({ skillId: req.params.id });
    await sleep(Math.max(0, 60 - (Date.now() - start)));
    return res.json(schedule);
  });
});

The fix addresses three distinct issues. Auth-before-CORS ordering ensures that the CORS headers are only emitted after the ownership check has succeeded — an unauthenticated or non-owner request receives no CORS-permitted response, so the browser cannot measure the response time cross-origin. The unified _id + ownerId WHERE clause eliminates the secondary oracle channel: a skill that does not exist and a skill whose owner is different both produce the same code path, same query plan, and same 404 response — the attacker cannot distinguish "skill does not exist" from "skill exists but you are not the owner" through timing or status code. The 60 ms constant-time floor eliminates the cache-hit versus database-query timing differential: whether the schedule is served from the in-memory cache in under 10 ms or requires a 55 ms database query, the total response time is padded to at least 60 ms in both cases, destroying the timing signal that the oracle depended on. The floor is applied both to the negative path (the 404 early return) and to the positive path (via the sleep call before res.json(schedule)), ensuring there is no differential leakage on either branch.

CORS63-004 — Credential-bearing CORS on scan result deletion erases vulnerability evidence

Severity: CRITICAL  |  Endpoint: DELETE /api/skills/:id/vulnerability-scan/results/:resultId

The scan result deletion endpoint shares the same router-level cors({origin:true,credentials:true}) policy as CORS63-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 scan result by ID without verifying that the calling session has administrative authority over the skill in question, that the skill ID in the path matches the scan result's recorded skill association, or that the caller has any relationship to the vulnerability finding being deleted. The VulnScan.deleteOne() call accepts any ObjectID and removes the matching document unconditionally.

The practical consequence operates at two levels of severity. At the immediate level, deleting a scan result prevents the patch tracking system from verifying that a specific vulnerability finding was remediated. Patch tracking systems work by comparing the current scan result set against a historical baseline — if a CVE was present in scan results on day 1 and absent on day 14, the tracking system infers that the vulnerability was patched between those dates. If the day-1 scan result is deleted, the tracking system has no baseline to compare against. It cannot determine whether the absence of the finding on day 14 represents a successful patch or a gap in scan coverage. For teams that use scan result history to generate compliance attestations (e.g., "all HIGH and CRITICAL CVEs in this skill's dependencies have been remediated within 72 hours of detection"), the deletion of historical scan results directly undermines the evidentiary basis for those attestations.

At the structural level, the absence of an audit log and notification mechanism on the deletion endpoint means that the legitimate skill owner has no signal that their scan evidence has been removed. The deletion is silent. The owner does not receive a notification. The audit log does not record the event. The first indication that scan results are missing typically comes from a downstream compliance check or a manual review triggered by an unrelated event — by which time the attacker's access window may have closed and the deletion may be impossible to attribute. Without knowing when the deletion occurred, incident response teams cannot determine whether vulnerability findings that are missing from the historical record were deleted maliciously or were never recorded in the first place, complicating the gap analysis that follows any security incident involving a compromised dependency.

Hard-deleting scan results prevents patch gap detection. Patch tracking systems that compare scan result history to verify remediation timelines cannot function correctly when historical scan results are deleted. If the initial detection event for a CVE is deleted, the system cannot determine whether the vulnerability was actually patched or whether it was silently removed from monitoring. For skills used in regulated environments where patch response time must be documented and auditable, the deletion of scan result history constitutes destruction of compliance evidence — with potential regulatory consequences independent of the underlying security impact.

Vulnerable
// DELETE — cors({origin:true,credentials:true}) from router.use(), no ownership check, no audit log
router.delete('/:id/vulnerability-scan/results/:resultId', requireSession, async (req, res) => {
  await VulnScan.deleteOne({ _id: req.params.resultId });
  return res.status(204).end();
});
Fixed
router.delete('/:id/vulnerability-scan/results/:resultId', vulnCors, requireSession, async (req, res) => {
  const result = await VulnScan.findOne({ _id: req.params.resultId, skillId: req.params.id });
  if (!result) return res.status(404).json({ error: 'Scan result not found' });
  const isAdmin = req.session.role === 'admin' || req.session.role === 'security_admin';
  const isOwner = String(result.skillOwnerId) === req.session.userId;
  if (!isAdmin && !isOwner) return res.status(403).json({ error: 'Forbidden' });
  await result.updateOne({ deletedAt: new Date(), deletedBy: req.session.userId });
  await AuditLog.create({ action: 'vuln.result.deleted', actorId: req.session.userId,
    resultId: req.params.resultId, skillId: req.params.id,
    cveId: result.cveId, severity: result.severity, origin: req.headers.origin, at: new Date() });
  if (!isOwner) await notify(result.skillOwnerId, { type: 'vuln.result.deleted',
    resultId: req.params.resultId, skillId: req.params.id, by: req.session.userId, cveId: result.cveId });
  return res.status(204).end();
});

The fix introduces four independent controls. Per-route allowlist CORS prevents any unauthorized origin from issuing credentialed DELETE requests. The ownership and role check ensures that only the skill owner or a security admin can delete scan results for a given skill — the check uses a compound findOne({ _id, skillId }) query so that a valid result ID cannot be used to delete scan results belonging to a different skill by substituting the skill path parameter. Soft-delete semantics are applied to all scan result deletions: the document is never hard-deleted; instead, deletedAt and deletedBy fields are set, and the result is hidden from the public scan API response while remaining queryable by the patch tracking system and audit tooling. The notification mechanism alerts the skill owner whenever a deletion is performed by a third party (admin deleting the owner's scan results), including the acting user's ID, the origin header, the CVE ID, and the severity of the finding being deleted — enabling the owner to rapidly identify and investigate unexpected deletions without waiting for a periodic audit.

Compound attack chain

The four vulnerabilities in SA-SKL-CORS63 compose naturally into a four-stage attack chain executed entirely from a single malicious web page visited by any registry admin. The chain is designed to progressively degrade the target's vulnerability management capability — beginning with reconnaissance that identifies the most valuable targets, then extracting pre-disclosure intelligence, then silencing future alerts, and finally destroying the evidence that alerts were ever generated:

StageFindingActionOutput used by
1 — Target identification CORS63-003 Probe 500 skill IDs in parallel, measure scan schedule endpoint response latency cross-origin, identify skills with high scan schedule modification velocity — indicating live admin sessions actively managing vulnerability findings, often during coordinated embargo disclosure windows when triage activity peaks Ranked target list of skills with active vulnerability management cycles for Stage 2 CVE exfiltration, ordered by recency of scan schedule modification
2 — Embargoed CVE exfiltration CORS63-001 Read full vulnerability scan results for high-velocity skills; extract embargoed CVE identifiers, embargoed CVSS scores, internal notes on patch timelines and affected deployments, and complete transitive dependency trees for each finding — establishing the full threat picture before public disclosure and identifying scan result IDs for Stage 4 deletion Pre-disclosure CVE intelligence enabling exploitation before public patch guidance; scan result IDs for Stage 4; CVE IDs to target for Stage 3 suppression
3 — Silent alert suppression CORS63-002 Create suppression entries for the highest-severity CVEs identified in Stage 2, using crafted justification strings that appear legitimate and omitting expiresAt for permanent suppression; the scanner stops alerting on those CVE-skill combinations; the team's monitoring dashboards go quiet; audit log attributes the suppressions to the victim admin's user ID Persistent vulnerability management blind spot; scanner silenced on specific CVEs; audit trail framing victim admin as suppression author
4 — Evidence destruction CORS63-004 Delete the original scan results identified in Stage 2 for the same CVEs that were suppressed in Stage 3; patch tracking systems lose the initial detection events; compliance attestations that depend on scan result history lose their evidentiary basis; the team has no automated signal that the results were deleted Destruction of patch gap detection capability; elimination of compliance evidence for affected CVEs; persistent blind spot with no automated recovery path

The chain is architecturally self-reinforcing. The timing oracle in Stage 1 targets skills whose admins are most likely to have active sessions during the same browsing context in which they might visit attacker-controlled pages — the oracle identifies not just vulnerability management activity but active session activity. Stage 2 provides the specific CVE IDs and severity data needed for Stage 3 to create maximally impactful suppressions targeting the highest-severity active findings rather than arbitrary CVEs that might not be present in the team's scan results. Stage 3 silences future detection while Stage 4 destroys past detection — together they close both the forward-looking alert path and the backward-looking audit trail for the same set of vulnerabilities. An attacker who completes all four stages has effectively removed a specific set of CVEs from the target skill team's vulnerability management field of view without triggering any automated detection mechanism.

The chain's most dangerous property is its persistence beyond the attacker's access window. Stages 1 and 2 require the victim's active session and are time-bounded by that session. But the suppressions created in Stage 3 persist until manually removed, and the scan results deleted in Stage 4 are unrecoverable without a database backup (assuming hard-delete semantics, as in the vulnerable code). The attacker's window is a single browsing session; the resulting vulnerability management blind spot is permanent or semi-permanent. Organizations that remediate the CORS vulnerabilities after an attack may still face months of degraded vulnerability detection capability from suppression entries and deleted scan results that were created before the fix was applied.

The audit log is not a sufficient defense without origin-field alerting. CORS63-002 and CORS63-004 (in the fixed version) both create audit log entries, but those entries attribute actions to the legitimate admin's user ID. An audit log review will show an admin creating suppression entries and deleting scan results — both of which are consistent with normal vulnerability management operations. 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 suppression creation and scan result deletion events will not detect this attack from their audit logs alone, even after the CORS vulnerabilities are fixed.

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. This matters because the root cause of all four CORS63 findings is a configuration decision made at the router or application level, not at the individual route handler level, and fixing only the route-level handlers without addressing the router-level policy leaves the vulnerability intact.

Three query classes cover SA-SKL-CORS63:

Query class 1 — cors_credentials_true_on_vuln_scan_endpoints. Detects cors({origin:true,credentials:true}) applied to routers or route handlers whose path segments match vulnerability scanning patterns: /vulnerability-scan, /vuln-scan, /security-scan, and common variants. The query walks the Express middleware chain for each matching router and flags both router-level application (which propagates to all child routes including scan results list, scan result detail, suppression management, and schedule endpoints) and per-route application on sensitive read and delete endpoints. It additionally flags the absence of a requireRole check on scan result endpoints — the combination of credentials-bearing CORS and no role boundary is the full attack surface for CORS63-001 and CORS63-004, and fixing only the CORS policy without adding the role gate leaves a session-scoped exposure. The query also flags response schemas that include fields matching embargoed*, internalNotes, or internal* in route handlers that do not have an explicit field exclusion via Mongoose .select() with a negative projection or an explicit serialization function — the missing field exclusion is the proximate cause of the embargoed CVE leakage in CORS63-001.

Query class 2 — wildcard_acao_on_suppression_write. Detects Access-Control-Allow-Origin: * set via res.setHeader, res.set, or applied via a cors() call on POST routes for suppression creation endpoints — paths containing suppress, suppression, or ignore in vulnerability scanning contexts. This query covers both explicit ACAO: * headers and cors({origin:'*'}) equivalents, as well as the case where a wildcard is emitted by a parent middleware and not overridden at the route level. It additionally flags the absence of a CSRF check and a Zod or Joi schema validation on suppression creation routes — the combination of wildcard CORS, no CSRF, and no schema validation is the complete attack surface for CORS63-002, and partial fixes that address only one of the three controls leave the endpoint partially vulnerable. It flags routes that accept arbitrary cveId strings without regex validation as a specific sub-pattern, since CVE ID format validation is a low-cost control that blocks a category of injection payloads before they reach the database layer. Routes that do not constrain maxSeverity or equivalent severity limiting parameters are flagged for the CRITICAL suppression bypass risk specifically.

Query class 3 — origin_reflection_before_auth_scan_schedule. 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 /vulnerability-scan/schedule, /scan-schedule, or similar patterns. 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. It also flags the absence of a constant-time response floor on schedule endpoints — without a timing floor, any difference in backend query latency (cache hit vs. database query, skill exists vs. skill not found) is detectable cross-origin. The query uses data-flow analysis to identify whether a sleep() or equivalent delay call is present in both branches of the access decision (the negative path that returns a 403 or 404, and the positive path that returns the schedule data) and flags routes where the floor is applied to only one branch.

These queries are available in SkillAudit's CORS rule pack alongside the full SA-SKL-CORS63 advisory. For teams scanning the broader CORS surface of their MCP skill registries, the same pack includes rules for changelog and release notes management endpoints (SA-SKL-CORS61) and the full endpoint surface documented in earlier advisories, covering the complete vulnerability management and content governance attack surface with consistent query semantics. Join the waitlist to run these queries against your registry codebase.

Summary and remediation checklist

SA-SKL-CORS63 documents four CORS misconfigurations in MCP skill registry dependency vulnerability scanning and patch management endpoints that together enable a compound four-stage vulnerability management disruption chain. All four vulnerabilities stem from the same root cause: CORS policy is applied at the router level using a reflect-all or wildcard configuration rather than on individual routes using an explicit origin allowlist, with no role boundary on sensitive read and delete operations, no schema validation on suppression creation, no ownership verification on result deletion, no audit logging on destructive operations, no notification mechanism on result deletion, and hard-delete semantics applied to vulnerability evidence that should be preserved for patch gap detection and compliance attestation.

FindingSeverityEndpointOne-line impactFix summary
CORS63-001 Critical GET /api/skills/:id/vulnerability-scan Any origin reads embargoed CVE IDs, CVSS scores, and full dependency trees using victim admin session Per-route allowlist cors; requireRole('admin'); filter embargoed findings; never return embargoedCveId or internalNotes in list responses
CORS63-002 Critical POST /api/skills/:id/vulnerability-scan/suppress Any page creates permanent CVE alert suppressions under victim admin identity, silencing scanner alerts for active exploits Allowlist CORS; requireRole('security_admin'); verifyCsrf; Zod SuppressionSchema with CVE-ID regex and maxSeverity enum blocking CRITICAL suppressions; audit log with origin
CORS63-003 Medium GET /api/skills/:id/vulnerability-scan/schedule Origin reflected before ownership check; timing oracle identifies skills with active vulnerability management cycles as CORS63-001 targets Auth before CORS emission; unified WHERE clause eliminates 403/404 timing channel; 60 ms constant-time response floor on both branches
CORS63-004 Critical DELETE /api/skills/:id/vulnerability-scan/results/:resultId Any origin removes any scan result using victim admin session, destroying patch gap detection and compliance evidence Per-route allowlist CORS; compound ownership check (resultId + skillId); soft-delete all scan results; audit log with CVE severity and origin; notify skill owner on third-party deletion

Remediation checklist.

☐ Replace router-level cors({origin:true,credentials:true}) with per-route allowlist cors (vulnCors) on all vulnerability scan endpoints
☐ Add requireRole('admin') to GET /vulnerability-scan — vulnerability scan data is never safe for unauthenticated or low-privilege cross-origin reads
☐ Filter embargoed findings from scan result list responses (embargoed: false); expose embargoed data only via a separately-audited internal endpoint
☐ Never return embargoedCveId, embargoedCvss, or internalNotes in any list or detail API response — use explicit serialization functions rather than relying on Mongoose toJSON transforms
☐ Replace ACAO: * on POST /suppress with allowlist CORS; add requireRole('security_admin') and verifyCsrf
☐ Add Zod SuppressionSchema to suppression creation: CVE-ID regex, minimum justification length, maxSeverity enum blocking CRITICAL suppressions
☐ Move auth execution before CORS header emission on scan schedule endpoint
☐ Replace two-query ownership pattern with unified WHERE _id = ? AND ownerId = ? on scan schedule endpoint to eliminate 403/404 timing channel
☐ Enforce 60 ms constant-time response floor on scan schedule endpoint — apply the floor to both the negative branch (404 return) and the positive branch (schedule response)
☐ Add compound findOne({ _id: resultId, skillId }) check on DELETE /results/:resultId to prevent cross-skill deletion via path parameter substitution
☐ Add owner/admin role check on scan result deletion
☐ Replace hard-delete with soft-delete on scan results: set deletedAt and deletedBy, hide from public API responses, preserve for patch tracking and compliance queries
☐ Add audit log with origin header to suppression creation and scan result deletion events
☐ Notify skill owner when scan results are deleted by a third party (admin or security_admin acting on another owner's skill)
☐ Alert on origin anomalies in suppression creation and scan result deletion audit log events
☐ Run SkillAudit scanner to detect all three AST query class violations across the complete vulnerability scan endpoint surface