Skip to content

Datawrapper MCP V2 2.5.2

Choose a tag to compare

@JohnnyTheTank JohnnyTheTank released this 30 Nov 17:25
· 82 commits to main since this release

Security (hosted server)

  • Client address on Fly: TRUST_CLIENT_IP_HEADER names a header the platform sets to the client's address on every request (Fly-Client-IP); the public instance uses it. With TRUST_PROXY_HOPS=1 the server read the last X-Forwarded-For entry, which on Fly is the app's own address: all visitors shared one bucket of 30 OAuth requests per minute, the larger allowance for claude.ai never applied, and countries in the usage counts came from that address.
  • /mcp rate limit per user instead of per token: a refreshed token no longer starts a new allowance.
  • OAuth: error pages send the same headers as the consent page (CSP, X-Frame-Options, Referrer-Policy: no-referrer, Cache-Control: no-store); /register and /token answer 400 instead of 500 to JSON bodies that are no object or carry non-text parameters; loopback redirects may differ from the registered one in the port only (not in query or credentials); the metadata fetch also refuses IPv4-compatible and IPv4-translated IPv6 addresses and the ORCHID ranges.
  • OAuth: /authorize refuses a code_challenge that is not the unpadded base64url of a SHA-256 hash (43 characters); such a challenge could never be met at /token.
  • Pages: the Content-Security-Policy sets base-uri 'none' and no longer allows inline styles (the pages use none).
  • Host names: a server with a public PUBLIC_URL no longer answers for localhost, 127.0.0.1 and ::1 (Host and Origin); a local server still does. Add a name to ALLOWED_HOSTS to reach a public server under it.
  • Statistics handover during a rotation of OAUTH_SECRET: the new process also accepts the handover of a predecessor that ran with a secret from OAUTH_SECRET_PREVIOUS (before: 401, the counts since the last collection were lost). Without STATS_SECRET the two processes hash user ids with different keys, so users active before and after are counted twice that day.
  • Usage counts: tool and client names such as constructor are counted as names.

Local server and maps

  • export_chart with save_to creates no folders through a symlink that leaves the export directory (before, only the file itself was refused), and refuses save_to over HTTP before the export, which no longer costs quota.
  • Locator maps: at most 30 boundary markers per call (each is one OpenStreetMap lookup, and lookups run one per 1.1 s for the whole server). When lookups are queued for more than 90 s, a call says so instead of waiting.
  • export_chart with save_to does not write through a symlink at the file name (O_NOFOLLOW).
  • source_url takes web links only (javascript: and other schemes are refused before the API call).
  • get_guide checks the file path with the platform's path separator.
  • MCP App viewer: "Live" and "Edit" open https links only. Dev harness: /__mcp/call answers the harness page only.
  • Build: the GeoIP download is unpacked with a size cap.