← Blog

CORS Misconfigurations in MCP Skill Registry Skill Marketplace Listing and Storefront Endpoints

Marketplace listing endpoints sit at the commercial heart of any MCP skill registry — they govern what buyers see, what pricing they are offered, and which promotional codes are available to convert hesitant purchasers. When CORS is misconfigured on these routes, an attacker can exfiltrate promotional discount codes and unpublished pricing tiers before launch, submit attacker-controlled draft listings through the marketplace approval pipeline, identify the most commercially valuable skills via a conversion-analytics timing oracle, and silently delete active skill listings using a victim admin session — disrupting the entire active subscriber base with no immediate functional breakage signals. Advisory SA-SKL-CORS49 details four distinct vulnerabilities that together form a compound four-stage commercial sabotage chain executable from a single malicious web page visited by any registry participant.

By SkillAudit  |  19 Nov 2026  |  20 min read

In this post

  1. Why marketplace listing endpoints are a high-value CORS target
  2. CORS49-001 — Credential-bearing CORS on listing config exposes promotional codes, unpublished pricing, and draft copy
  3. CORS49-002 — Wildcard ACAO on listing publish enables unauthorized draft publication and approval pipeline injection
  4. CORS49-003 — Timing oracle on listing analytics endpoint enumerates high-conversion listings as exfiltration targets
  5. CORS49-004 — Credential-bearing CORS on listing deletion disrupts active subscriber base with no breakage signals
  6. Compound marketplace sabotage attack chain
  7. Detection with SkillAudit AST queries
  8. Summary and remediation checklist
Advisory SA-SKL-CORS49 — Findings at a glance
Critical CORS49-001 — GET /api/skills/:id/listing allows any origin with credentials to read the full listing configuration, including draft copy, unpublished pricing tiers, and promotional discount codes not yet exposed to the public
High CORS49-002 — POST /api/skills/:id/listing/publish returns Access-Control-Allow-Origin: *, letting any page submit unpublished skill drafts for marketplace approval, consuming publishing quota and injecting attacker-controlled content into the editorial pipeline
Medium CORS49-003 — GET /api/skills/:id/listing/analytics reflects Origin before ownership check, creating a timing oracle that reveals conversion analytics existence across all organisations and identifies the most commercially valuable listing targets
Critical CORS49-004 — DELETE /api/skills/:id/listing allows any origin with credentials to remove any skill from the marketplace using a victim admin session, disrupting active subscriber access with no observable functional breakage

Why marketplace listing endpoints are a high-value CORS target

When teams run CORS audits against their MCP skill registries, they typically focus on the data-plane surfaces: the skill metadata API, the execution webhook, the audit report endpoint. Marketplace listing routes receive less scrutiny because they are perceived as read-mostly surfaces that return publicly visible information. This perception is wrong in ways that matter commercially.

Listing endpoints carry two categories of data that are not publicly visible: pre-launch drafts and commercial configuration. Pre-launch draft copy tells competitors exactly what positioning and feature claims a publisher is planning before they go live — draft copy gives competitors weeks of advance intelligence about messaging angles that the publisher has not yet committed to publicly. Commercial configuration includes unpublished pricing tiers (exposing planned pricing strategy before the publisher has tested market response), promotional discount codes (direct exfiltration of partner channel codes that the publisher distributes to affiliates and launch partners), and upcoming promotional windows (which competitors can use to time counter-promotions).

Beyond the read-access concern, listing mutation endpoints compound the risk. The publish endpoint controls whether a draft enters the marketplace approval queue — an attacker who can trigger a publish can inject content into the editorial review pipeline that the publisher never submitted. The deletion endpoint controls whether an active listing remains discoverable — a deleted listing does not break existing integrations, so the disruption may not surface as an incident alert, only as a gradual decline in new-user discovery that is mistaken for a marketing performance regression.

The four findings in SA-SKL-CORS49 follow the same router-level inheritance pattern seen across the CORS advisory series: a broad cors({origin:true,credentials:true}) applied at the skills router level, then listing sub-routes added incrementally without route-specific policy evaluation.

CORS49-001 — Credential-bearing CORS on listing config exposes promotional codes, unpublished pricing, and draft copy

Severity: CRITICAL

The GET /api/skills/:id/listing endpoint is configured with cors({origin:true,credentials:true}). The origin:true option reflects whatever Origin header the browser sends back as Access-Control-Allow-Origin, and pairing this with credentials:true means Access-Control-Allow-Credentials: true is also returned. The browser then permits cross-origin JavaScript to read the full response body using the victim's session cookie.

The listing config object includes the full commercial state of the skill's marketplace presence: published fields visible to buyers, draft fields visible only to the owner, pricing tier configuration including any tiers not yet made public, and promotional codes issued to channel partners. The endpoint returns the entire document with no caller-role-aware field filtering — a buyer authenticated with a standard session gets the same full response as the skill owner.

Three categories of harm stem from this exposure. First, promotional code exfiltration: partner channel codes are single-use-per-customer but multi-redemption, so an attacker who obtains them before launch can exhaust them entirely, eliminating the conversion uplift the publisher was counting on from partner distribution. Second, unpublished pricing exposure: the publisher has not yet announced pricing and is planning to test market response — the attacker can share pricing intelligence with the publisher's direct competitors before the publisher has had a chance to gauge reaction. Third, draft copy gives competitors early positioning signal — the attacker knows exactly which claims the publisher plans to make and can prepare counter-messaging before launch day.

Vulnerable
// routes/skills/listing.js
const cors = require('cors');
const router = require('express').Router();

// Broad cors helper applied at the router level — all sub-routes inherit it
router.use(cors({ origin: true, credentials: true }));

// GET /api/skills/:id/listing
// Returns full listing config — includes drafts, unpublished pricing, promo codes
router.get('/:id/listing', requireSession, async (req, res) => {
  const listing = await Listing.findOne({ skillId: req.params.id })
    .populate('pricingTiers')
    .populate('promoCodes');

  // Entire document returned — draft fields and promo codes included
  return res.json(listing);
});
Fixed
// routes/skills/listing.js
const cors = require('cors');
const router = require('express').Router();

// Per-route allowlist cors — no catch-all at router level
const listingCors = cors({
  origin: (origin, cb) => {
    const allowed = process.env.CORS_ALLOWLIST?.split(',') ?? [];
    if (!origin || allowed.includes(origin)) return cb(null, true);
    cb(new Error('Origin not permitted'));
  },
  credentials: true,
});

// GET /api/skills/:id/listing
router.get('/:id/listing', listingCors, requireSession, async (req, res) => {
  const listing = await Listing.findOne({ skillId: req.params.id })
    .populate('pricingTiers')
    .populate('promoCodes');

  if (!listing) return res.status(404).json({ error: 'Not found' });

  const isOwner = listing.ownerId.toString() === req.session.userId;

  // Owner sees full config; public callers see only published fields
  if (isOwner) {
    // Promotional codes are write-only — never return code values, only metadata
    const ownerView = {
      ...listing.toObject(),
      promoCodes: listing.promoCodes.map(c => ({
        id: c._id,
        label: c.label,
        redemptionCount: c.redemptionCount,
        expiresAt: c.expiresAt,
        // code value intentionally omitted — treat as write-only after creation
      })),
    };
    return res.json(ownerView);
  }

  // Public callers receive published-only fields with no draft or pricing leakage
  if (listing.status !== 'published') {
    return res.status(404).json({ error: 'Not found' });
  }
  return res.json({
    skillId: listing.skillId,
    title: listing.publishedTitle,
    description: listing.publishedDescription,
    tags: listing.publishedTags,
    pricingTiers: listing.pricingTiers
      .filter(t => t.published)
      .map(t => ({ name: t.name, price: t.price, features: t.features })),
    // promoCodes intentionally omitted for all non-owner callers
  });
});

Promotional codes are not passwords — but they carry equivalent commercial value. Unlike passwords, promo codes are not hashed. They are raw bearer strings distributed to channel partners, affiliates, and launch campaigns. Returning them in a GET response means any CORS misconfiguration, logging middleware, response cache, or proxy that sits between the server and the client will immediately expose them. Treat promotional codes as write-only: allow creation and deactivation, never return them after initial issuance. Issue separate read-only code lists to partners via a separate authenticated channel, not via the listing API.

CORS49-002 — Wildcard ACAO on listing publish enables unauthorized draft publication and approval pipeline injection

Severity: HIGH

The POST /api/skills/:id/listing/publish endpoint returns Access-Control-Allow-Origin: * — a wildcard. The common assumption is that a wildcard ACAO is safe because browsers will not attach cookies, so the victim session cannot be used. This endpoint undermines that assumption in two ways.

First, the endpoint does not enforce a session requirement before processing the publish action. Any request that supplies a valid skillId in the path and a minimal listing payload in the body will trigger the publish workflow — the absence of a session check means the attacker does not need the victim's cookies at all. Second, the endpoint does not validate that the caller is the skill owner, which means an attacker can trigger publication of any unpublished skill in the registry, not just skills they own.

The practical impact is two-pronged. First, publishing quota exhaustion: the marketplace imposes a rate limit on the number of listing submissions per publisher per day to prevent spam and control review queue depth. An attacker can exhaust this quota by submitting publication requests for all of a victim publisher's draft skills, locking the publisher out of the submission pipeline at a critical launch window. Second, approval pipeline injection: by crafting a minimal payload with attacker-controlled title, description, and tags fields, the attacker can submit content into the marketplace editorial queue under the victim publisher's account identity — the submitted content appears as the publisher's own voluntary submission, with no indication that the publisher did not author it.

The fix removes the wildcard, requires a valid session, adds a CSRF token requirement, gates the route behind requireOwnership, and validates that the listing payload is complete before accepting a publish submission.

Wildcard ACAO is not an authentication substitute. The assumption that ACAO: * protects against session hijacking misses the scenario where the endpoint requires no authentication at all. An unauthenticated mutation endpoint with wildcard ACAO is not safer than one with credential-bearing CORS — it is worse, because the attacker does not even need a victim session to exploit it. Always require session authentication as an independent gate, regardless of the CORS policy.

CORS49-003 — Timing oracle on listing analytics endpoint enumerates high-conversion listings as exfiltration targets

Severity: MEDIUM

The GET /api/skills/:id/listing/analytics endpoint reflects the Origin header back in Access-Control-Allow-Origin before it performs any ownership or authentication check. This sequencing creates a timing oracle that is commercially valuable in a way that distinguishes it from the generic timing oracles documented in the CORS advisory series.

When a cross-origin request arrives for a skill ID that exists and has conversion analytics — meaning buyers have viewed, trialled, or purchased the listing — the server queries the analytics table, finds rows, and then evaluates ownership. The analytics query itself takes measurably longer than for a skill with no analytics history, because it aggregates view counts, conversion events, and revenue data across potentially thousands of rows. When a request arrives for a skill with no analytics history, the ownership check short-circuits after a fast index lookup. The difference in latency is typically 20–60 ms and is reliably detectable cross-origin, since browsers do not block timing data for cross-origin requests.

What makes CORS49-003 commercially valuable beyond the generic timing oracle pattern is the nature of what the oracle reveals. Skills with analytics are not just any skills — they are skills that have been listed, found by buyers, and acted upon. Skills with high analytics query latency (more rows, more aggregation time) are the most commercially successful listings in the registry. These are precisely the listings whose promotional codes (CORS49-001) are most valuable to exfiltrate: a competitor gains maximum leverage by exhausting the promo codes of the top-converting listings, not random ones. The timing oracle turns a broad reconnaissance problem into a targeted intelligence task.

The correct fix is threefold: perform authentication and ownership checks before any CORS header emission; use a single WHERE skillId = ? AND ownerId = ? clause so that ownership and existence checks hit the same query path; and normalise 403 and 404 response latencies with a constant-time response function so that the distinction between no analytics and not-your-skill is indistinguishable from the caller's perspective.

CORS49-004 — Credential-bearing CORS on listing deletion disrupts active subscriber base with no breakage signals

Severity: CRITICAL

The DELETE /api/skills/:id/listing endpoint shares the same cors({origin:true,credentials:true}) policy as the GET endpoint described in CORS49-001. Any web page can instruct the victim admin's browser to issue an authenticated DELETE request against any listing in the registry. There is no ownership check and no subscription-count threshold: even a listing with ten thousand active paid subscribers can be deleted in a single cross-origin request.

The particularly insidious property of marketplace listing deletion is its damage propagation pattern. When a listing is deleted, existing subscribers who have already installed or activated the skill continue to function normally — their integrations work, their API calls succeed, their workflows are unaffected. The disruption is entirely at the discovery layer: the skill no longer appears in marketplace search results, in category browsing, or in the registry's new-user onboarding recommendations. New potential subscribers cannot find it. Existing subscribers who want to refer colleagues cannot share a working marketplace link.

This means the impact of CORS49-004 exploitation is not an incident alert — it is a revenue decline that looks like a marketing regression. The publisher sees the listing gone from the marketplace and does not immediately know whether it was their own staff testing a takedown workflow, an infrastructure bug, or an external attack. In an incident-response scenario, restoring the listing requires re-entering the approval pipeline, which takes days if the marketplace has a manual review step — and during that window, the publisher has no public marketplace presence.

Vulnerable
// DELETE /api/skills/:id/listing
// No ownership check, no subscription count threshold, no audit log
router.delete(
  '/:id/listing',
  // cors({origin:true,credentials:true}) inherited from router.use() above
  requireSession,
  async (req, res) => {
    const listing = await Listing.findOne({ skillId: req.params.id });
    if (!listing) return res.status(404).json({ error: 'Not found' });

    await listing.deleteOne();
    return res.status(204).end();
  }
);
Fixed
// DELETE /api/skills/:id/listing
router.delete(
  '/:id/listing',
  listingCors,            // allowlist-based cors, not origin:true
  requireSession,
  requireRole('admin'),
  async (req, res) => {
    // Ownership check: listing must belong to the requesting org
    const listing = await Listing.findOne({
      skillId: req.params.id,
      ownerId: req.session.userId,
    });
    if (!listing) return res.status(404).json({ error: 'Not found' });

    // Subscription count threshold: refuse deletion if active subscribers exist
    // without explicit confirmation flag to prevent accidental mass disruption
    const activeSubscriberCount = await Subscription.countDocuments({
      skillId: req.params.id,
      status: 'active',
    });

    if (activeSubscriberCount > 0 && !req.body.confirmActiveSubscribers) {
      return res.status(409).json({
        error: 'listing_has_active_subscribers',
        activeSubscriberCount,
        hint: 'Set confirmActiveSubscribers:true to proceed',
      });
    }

    await listing.deleteOne();

    // Audit log entry
    await AuditLog.create({
      action: 'listing.deleted',
      skillId: req.params.id,
      actorId: req.session.userId,
      activeSubscriberCountAtDeletion: activeSubscriberCount,
      timestamp: new Date(),
    });

    // Notify active subscribers so they can seek alternatives
    if (activeSubscriberCount > 0) {
      await notifyActiveSubscribers(req.params.id, {
        event: 'listing.removed',
        skillId: req.params.id,
        removedAt: new Date(),
        message: 'This skill has been removed from the marketplace by its publisher.',
      });
    }

    return res.status(204).end();
  }
);

Listing deletion with active subscribers is a silent availability event. Unlike service outages that immediately trigger alerts, a listing deletion disrupts only new-user discovery while leaving existing integrations functional. This means neither the publisher nor the registry operations team receives an incident alert — the impact accumulates silently as new signups flatline. Build a subscription-count threshold gate directly into the deletion flow, not as a downstream safeguard, and emit explicit notifications to active subscribers so the disruption surfaces immediately rather than via revenue reports weeks later.

Compound marketplace sabotage attack chain

The four findings in SA-SKL-CORS49 are individually serious, but their compounding effect enables a single-session attack that achieves competitive intelligence, subscriber disruption, and marketplace impersonation simultaneously — without the attacker ever obtaining elevated credentials beyond the victim session that arrives passively when the victim visits a malicious page.

Stage Finding What the attacker gains
1. Target selection CORS49-003 Timing oracle identifies the highest-converting listings in the registry — the ones with the richest analytics history and therefore the most commercially valuable promotional codes and pricing intelligence
2. Commercial intelligence CORS49-001 Full listing config fetched for each identified target, including promotional codes distributed to channel partners, unpublished pricing tiers, and draft copy revealing launch-day messaging before the publisher has gone live
3. Pipeline injection CORS49-002 Attacker-controlled draft copy submitted for marketplace approval under the victim publisher's identity, consuming publishing quota and injecting attacker-authored content into the editorial review pipeline
4. Subscriber disruption CORS49-004 Active listing deleted using victim admin session, removing the skill from all marketplace discovery surfaces while leaving existing integrations functional — impact observable only via new-user discovery failure, not operational alerts

The timing oracle at stage 1 deserves particular emphasis because it qualitatively changes the economics of the attack. Without it, targeting the most valuable listings requires either insider knowledge or a broad enumeration sweep that generates obvious noise in access logs. With CORS49-003 available, the attacker can silently rank every public skill ID by commercial activity in a matter of seconds, then concentrate CORS49-001 exfiltration on the top ten targets. The reconnaissance cost drops from hours to milliseconds, and the signal-to-noise ratio in the registry's access logs drops to near zero — timing probes look identical to legitimate analytics queries.

The final stage — deleting the listing after extracting its promotional codes and injecting rogue copy — mirrors a tactic used in marketplace fraud: drain the asset, then remove the asset so the publisher spends incident-response bandwidth restoring the listing rather than investigating the promo code exhaustion or the rogue editorial submission that happened earlier in the same session.

Detection with SkillAudit AST queries

All four vulnerabilities in SA-SKL-CORS49 are detectable at the static analysis level using SkillAudit's AST query engine. The queries below target Express.js router patterns, but equivalent queries exist for Fastify, Hono, and Koa in the SkillAudit rule library.

Detecting credential-bearing reflected-origin CORS on listing read and delete routes (CORS49-001, CORS49-004):

// SkillAudit AST query — detects cors({origin:true,credentials:true}) on router.use() or
// any sub-route that handles listing read or deletion paths
skill.query.cors.reflectCredentials({
  routePattern: /\/listing(\/|$)/,
  corsOptions: { origin: true, credentials: true },
  flag: 'CORS49-REFLECT-CRED-LISTING'
})

Detecting wildcard ACAO on mutation routes under listing namespaces (CORS49-002):

// SkillAudit AST query — detects explicit ACAO:* header on POST/PUT/PATCH routes
// under /listing/* paths
skill.query.cors.wildcardOnMutation({
  routePattern: /\/listing\//,
  methods: ['POST', 'PUT', 'PATCH'],
  flag: 'CORS49-WILDCARD-MUTATION-LISTING'
})

Detecting CORS emission before auth/ownership check on analytics routes (CORS49-003):

// SkillAudit AST query — detects handler middleware order where cors() precedes
// requireSession, requireOwnership, or any ownership WHERE clause construction
skill.query.cors.headerBeforeAuth({
  routePattern: /\/listing\/analytics/,
  authMiddleware: ['requireSession', 'requireOwnership', 'requireRole'],
  flag: 'CORS49-CORS-BEFORE-AUTH-ANALYTICS'
})

These queries run as part of every SkillAudit pull-request scan. When a match is found, the finding is surfaced inline in the PR diff with a severity label, a link to the relevant advisory, and a suggested fix. Teams integrating SkillAudit typically catch regressions of this type within minutes of the offending commit landing, rather than discovering them through a manual penetration test months later.

Summary and remediation checklist

CORS misconfigurations on marketplace listing endpoints are some of the highest-impact commercial findings in the MCP registry threat model. Unlike misconfigurations on pure data-plane endpoints, they enable commercial sabotage: promotional code exfiltration, approval pipeline injection, and silent listing removal that disrupts active subscriber discovery with no operational alert. The remediation steps are well-defined but require discipline across the entire listing route namespace.

Finding Severity Primary remediation Secondary hardening
CORS49-001 Critical Replace origin:true with an explicit allowlist; add requireSession; filter response by caller role Remove promotional code values from GET responses; return only metadata (label, redemption count, expiry)
CORS49-002 High Remove ACAO: *; require session, CSRF token, and requireOwnership Validate listing completeness before accepting publish; enforce per-publisher daily submission quota
CORS49-003 Medium Authenticate and check ownership before emitting any CORS header Unified WHERE clause; constant-time 403/404 latency normalisation
CORS49-004 Critical Replace origin:true with allowlist; add requireRole('admin') and ownership check Subscription count threshold before deletion; audit log every deletion; notify active subscribers synchronously

Across all four findings, the same underlying principle applies: CORS policy must be evaluated per-route and per-sensitivity, not applied wholesale at the router level and inherited downward. Listing endpoints carry commercial data that is fundamentally different in sensitivity from the public skill discovery data that sits beside it in the same codebase. Treat the listing namespace as a separate security boundary, enforce authentication independently of the CORS configuration, and treat promotional codes and unpublished pricing as write-only fields that belong in the same category as passwords and API keys — never returned in GET responses, regardless of the caller's authentication level.

Find CORS misconfigurations like these before attackers do. SkillAudit's free tier scans your MCP skill registry for all four patterns described in SA-SKL-CORS49 — plus the broader CORS49 advisory series covering marketplace search and discovery, permission delegation, and billing subscription endpoints. Connect your repository at skillaudit.dev and get your first scan in under five minutes. For the full technical disclosure, see the SA-SKL-CORS49 advisory. For related findings in adjacent endpoint groups, see the SA-SKL-CORS48 search and discovery advisory and the SA-SKL-CORS47 permission delegation blog post.