← Blog

Claude MCP skill SSRF — skill translation and localization workflow webhook endpoints (SA-SKL-SSRF86)

SA-SKL-SSRF86 identifies four server-side request forgery vulnerabilities across the MCP skill registry's translation and localization workflow webhook endpoints. All four endpoints accept publisher-supplied URLs and perform server-side HTTP requests without validating that the destination is a legitimate external service — enabling attackers to route requests to cloud metadata services, internal service discovery infrastructure, secret management systems, and configuration stores. The most severe finding allows SSRF responses to be stored persistently in the translation history API, creating a durable exfiltration path that survives the original webhook invocation and remains queryable by the attacker indefinitely.

SA-SKL-SSRF86 findings at a glance
CRITICALSSRF86-001 — translation completion callback endpoint fetches user-supplied translationCallbackUrl — attacker sets to 169.254.169.254; IAM credentials returned in translation callback response body
CRITICALSSRF86-002 — localization export webhook endpoint fetches user-supplied localizationExportUrl — attacker points to Consul:8500; full service catalog returned as localization export acknowledgment body
CRITICALSSRF86-003 — translation delivery endpoint fetches user-supplied translationDeliveryUrl with redirect:follow — CNAME chain to Vault:8200 returns KV secrets
HIGHSSRF86-004 — localization import endpoint fetches user-supplied localizationImportUrl and stores raw response as localization record — attacker points to etcd:2379; etcd config stored persistently via translation history API

SSRF86-001 — Translation completion callback fetches attacker-supplied URL leaking IAM credentials from IMDS

The translation completion callback endpoint accepts a publisher-supplied translationCallbackUrl and performs a server-side POST request to that URL to notify the publisher when their skill's translation job is complete. The registry server runs in a cloud environment where the instance metadata service (IMDS) is accessible at 169.254.169.254 without any network controls. Because the endpoint performs no URL validation before issuing the outbound request, an attacker who registers a translation job with translationCallbackUrl set to http://169.254.169.254/latest/meta-data/iam/security-credentials/ receives the cloud provider's instance metadata response as the callback request body. The IMDS credential endpoint returns temporary IAM access key ID, secret access key, and session token for the role attached to the registry server's compute instance — granting the attacker full programmatic access to every AWS service that role can reach, including the S3 buckets containing skill source archives and the DynamoDB tables containing user data.

Vulnerable
// SSRF86-001 — VULNERABLE: unvalidated translationCallbackUrl fetched server-side
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.post('/skills/:id/translation/callback',
  requireSession,
  async (req, res) => {
    const { translationCallbackUrl, jobId } = req.body;
    const job = await db.getTranslationJob(jobId);
    // No URL validation — fetches any URL including 169.254.169.254
    const callbackResp = await fetch(translationCallbackUrl, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ jobId, status: job.status, results: job.results })
    });
    const callbackBody = await callbackResp.text();
    res.json({ delivered: true, callbackStatusCode: callbackResp.status, callbackBody });
  }
);

module.exports = router;

Returning the SSRF response body to the caller completes the exfiltration loop — the attacker receives IAM credentials directly in the API response. assertSafeExternalUrl() must reject private IP ranges, link-local addresses, and loopback addresses before any outbound request is issued. Setting redirect: 'error' prevents redirect-based SSRF bypasses. Returning only the upstream statusCode without the response body eliminates the exfiltration channel even if the URL validation is bypassed.

Fixed
// SSRF86-001 — FIXED: assertSafeExternalUrl(); redirect:error; return only statusCode
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { assertSafeExternalUrl } = require('../middleware/ssrf');

const router = express.Router();

router.post('/skills/:id/translation/callback',
  requireSession,
  async (req, res) => {
    const { translationCallbackUrl, jobId } = req.body;
    // Throws if URL is private IP, link-local, loopback, or non-https
    assertSafeExternalUrl(translationCallbackUrl);
    const job = await db.getTranslationJob(jobId);
    const callbackResp = await fetch(translationCallbackUrl, {
      method: 'POST',
      redirect: 'error',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ jobId, status: job.status })
      // Note: job.results not included — minimise data in outbound payload
    });
    // Return only statusCode — never return response body to caller
    res.json({ delivered: true, callbackStatusCode: callbackResp.status });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H — Base Score 9.9 (CRITICAL); IAM credential exfiltration enables full account takeover; scope changed due to cloud infrastructure access.

SSRF86-002 — Localization export webhook fetches attacker-supplied URL returning Consul service catalog

The localization export webhook endpoint accepts a publisher-supplied localizationExportUrl and performs a server-side GET request to acknowledge receipt of a localization package export. The registry's internal Consul agent runs on localhost:8500 and is also accessible via the internal network at its direct IP address. Because the endpoint performs no URL validation, an attacker who registers a localization export job with localizationExportUrl set to http://consul.internal:8500/v1/catalog/services receives the full Consul service catalog as the acknowledgment response — revealing every internal service name, its IP address, port, health check endpoint, and registered metadata tags. This service catalog is a complete network topology map of the registry's internal infrastructure, enabling targeted follow-on attacks against every service listed, including internal admin APIs, database endpoints, and worker management services that are not otherwise visible from the public network.

Vulnerable
// SSRF86-002 — VULNERABLE: unvalidated localizationExportUrl fetched server-side
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.post('/skills/:id/localization/export/webhook',
  requireSession,
  async (req, res) => {
    const { localizationExportUrl, exportJobId } = req.body;
    const exportJob = await db.getLocalizationExportJob(exportJobId);
    // No URL validation — fetches any URL including Consul:8500
    const ackResp = await fetch(localizationExportUrl, {
      method: 'GET',
      headers: { 'X-Export-Job-Id': exportJobId }
    });
    const ackBody = await ackResp.text();
    res.json({ acknowledged: true, ackStatusCode: ackResp.status, ackBody });
  }
);

module.exports = router;

The Consul service catalog returned via SSRF contains every internal service's IP, port, and metadata — it is a complete network map of the internal infrastructure. assertSafeExternalUrl() blocks all private ranges before the request is issued. Using HEAD-only prevents the response body from ever being populated, which eliminates the data exfiltration channel regardless of whether the URL check is bypassed. Returning only statusCode ensures no internal data is ever surfaced to the caller.

Fixed
// SSRF86-002 — FIXED: assertSafeExternalUrl(); HEAD-only; return only statusCode
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { assertSafeExternalUrl } = require('../middleware/ssrf');

const router = express.Router();

router.post('/skills/:id/localization/export/webhook',
  requireSession,
  async (req, res) => {
    const { localizationExportUrl, exportJobId } = req.body;
    // Throws if URL is private IP, link-local, loopback, or non-https
    assertSafeExternalUrl(localizationExportUrl);
    // HEAD-only: no response body — eliminates data exfiltration channel
    const ackResp = await fetch(localizationExportUrl, {
      method: 'HEAD',
      redirect: 'error',
      headers: { 'X-Export-Job-Id': exportJobId }
    });
    // Return only statusCode — never return response body
    res.json({ acknowledged: true, ackStatusCode: ackResp.status });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N — Base Score 7.7 (HIGH); full internal service topology exfiltration enables targeted follow-on attacks against every listed service.

SSRF86-003 — Translation delivery follows CNAME chain to Vault returning KV secrets

The translation delivery endpoint accepts a publisher-supplied translationDeliveryUrl and performs a server-side POST request to deliver translated skill content to the publisher's chosen destination. The endpoint uses node-fetch with its default redirect: 'follow' option, which automatically follows HTTP redirects including those that result from DNS CNAME chains. An attacker who controls a DNS entry can configure a CNAME chain where the initial hostname resolves to a legitimate-looking external domain but eventually resolves to an internal service address — specifically vault.internal:8200, the HashiCorp Vault instance used to store registry secrets. When the delivery endpoint follows this chain, the final request reaches Vault's KV secrets API, and the response body containing database passwords, API keys, and signing certificates is returned to the attacker as the delivery acknowledgment. This technique bypasses IP-based SSRF filters because the initial URL check passes on the legitimate-looking hostname before DNS resolution completes.

Vulnerable
// SSRF86-003 — VULNERABLE: redirect:follow enables CNAME chain SSRF to Vault
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.post('/skills/:id/translation/delivery',
  requireSession,
  async (req, res) => {
    const { translationDeliveryUrl, translationJobId } = req.body;
    const job = await db.getTranslationJob(translationJobId);
    // redirect:'follow' follows CNAME chains to internal services
    const deliveryResp = await fetch(translationDeliveryUrl, {
      method: 'POST',
      redirect: 'follow',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ jobId: translationJobId, payload: job.translatedContent })
    });
    const deliveryBody = await deliveryResp.text();
    res.json({ delivered: true, deliveryStatusCode: deliveryResp.status, deliveryBody });
  }
);

module.exports = router;

CNAME chain SSRF bypasses hostname-based allowlists because the DNS resolution — which produces the internal IP — happens after the URL check that only inspects the original hostname. Setting redirect: 'error' in node-fetch prevents the redirect chain from being followed. assertSafeExternalUrl() must perform DNS pre-resolution and validate the resolved IP address in addition to the hostname to defeat DNS rebinding. Returning only statusCode without the response body eliminates the exfiltration channel.

Fixed
// SSRF86-003 — FIXED: assertSafeExternalUrl(); redirect:error; return only statusCode
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { assertSafeExternalUrl } = require('../middleware/ssrf');

const router = express.Router();

router.post('/skills/:id/translation/delivery',
  requireSession,
  async (req, res) => {
    const { translationDeliveryUrl, translationJobId } = req.body;
    // DNS pre-resolution validates resolved IP, not just hostname
    await assertSafeExternalUrl(translationDeliveryUrl, { resolveDns: true });
    const job = await db.getTranslationJob(translationJobId);
    const deliveryResp = await fetch(translationDeliveryUrl, {
      method: 'POST',
      redirect: 'error',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ jobId: translationJobId })
      // translatedContent not included in outbound delivery notification
    });
    // Return only statusCode — never return response body to caller
    res.json({ delivered: true, deliveryStatusCode: deliveryResp.status });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N — Base Score 6.8 (MEDIUM); attack complexity high due to DNS CNAME chain requirement; scope changed due to Vault secret exfiltration.

SSRF86-004 — Localization import stores SSRF response body persistently via translation history API

The localization import endpoint accepts a publisher-supplied localizationImportUrl, fetches the content at that URL, and stores the raw response body as a localization record in the translation history database. Because the content is stored persistently, this SSRF vulnerability creates a durable exfiltration path that survives the original webhook invocation: an attacker who points localizationImportUrl to http://etcd.internal:2379/v3/kv/range causes the entire etcd configuration store — containing cluster membership, service configuration, and network policies — to be stored as a localization record. The attacker can then retrieve this data at any time by querying the translation history API, turning what would otherwise be a one-shot SSRF into a persistent intelligence source. Even after the import endpoint is patched, historical records stored before the fix remain in the translation history database and queryable by any publisher with access to their own translation history.

Vulnerable
// SSRF86-004 — VULNERABLE: unvalidated URL; raw response stored persistently
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');

const router = express.Router();

router.post('/skills/:id/localization/import',
  requireSession,
  async (req, res) => {
    const { localizationImportUrl, locale } = req.body;
    // No URL validation — fetches any URL including etcd:2379
    const importResp = await fetch(localizationImportUrl);
    const importBody = await importResp.text();
    // Raw response stored persistently — creates durable exfiltration record
    const record = await db.createLocalizationRecord({
      skillId: req.params.id,
      locale,
      content: importBody,
      importedFrom: localizationImportUrl,
      importedBy: req.session.userId
    });
    res.json({ imported: true, recordId: record.id });
  }
);

module.exports = router;

Storing the SSRF response body persistently converts a transient SSRF into a durable intelligence source that the attacker can query at any time after the fact. assertSafeExternalUrl() blocks internal destinations before the request is issued. HEAD-only prevents the response body from ever being populated. Storing only the URL and the probe status code — never the response content — ensures that even if URL validation is bypassed, no internal data is ever written to the translation history database.

Fixed
// SSRF86-004 — FIXED: assertSafeExternalUrl(); HEAD-only; store only URL and statusCode
const express = require('express');
const fetch = require('node-fetch');
const { db } = require('../db');
const { requireSession } = require('../middleware/auth');
const { assertSafeExternalUrl } = require('../middleware/ssrf');

const router = express.Router();

router.post('/skills/:id/localization/import',
  requireSession,
  async (req, res) => {
    const { localizationImportUrl, locale } = req.body;
    // Throws if URL is private IP, link-local, loopback, or non-https
    assertSafeExternalUrl(localizationImportUrl);
    // HEAD-only: response body never populated — no content to store
    const probeResp = await fetch(localizationImportUrl, {
      method: 'HEAD',
      redirect: 'error'
    });
    // Store only URL and probe status — never store response body
    const record = await db.createLocalizationRecord({
      skillId: req.params.id,
      locale,
      importedFrom: localizationImportUrl,
      probeStatusCode: probeResp.status,
      importedBy: req.session.userId
      // content field intentionally omitted
    });
    res.json({ imported: true, recordId: record.id });
  }
);

module.exports = router;

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N — Base Score 8.5 (HIGH); persistence of SSRF response body elevates impact; integrity impact from durable exfiltration record creation.

Scan your MCP skill for SSRF86 and 200+ other vulnerability classes

SkillAudit checks for all SA-SKL-SSRF vulnerability patterns including unvalidated webhook URLs fetching cloud metadata, redirect-following SSRF enabling CNAME chain attacks, and persistent SSRF response storage in translation history. Get a graded report with line-level code fixes in 60 seconds.

Get a free audit