Widget loads a third-party script with no integrity hash or pinned version
A script tag pointing at an unpinned URL with no integrity attribute can change under you. Bundle it or pin the version and add integrity.
Bundle third-party scripts into the template, or load them from a pinned URL with an integrity hash. The rule apps.external-script-unpinned is a minor, warn-level finding for ChatGPT and Claude.
What you see
- A scan reports
apps.external-script-unpinned:https://cdn.acme.example/chart.js has no integrity attribute and no pinned version. - It checks absolute
script srcURLs in the template HTML. A script passes with anintegrityattribute, or with a URL that contains a version like@4.4.1or/4.4.1/.
Why it happens
A latest URL is convenient. The remote file can change after review, and your widget runs whatever it serves. The rule's fix text names the two fixes. Related: apps.csp-undeclared-domain for the origin itself.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"resources/read","params":{"uri":"ui://widget/orders.html"}}' \
| jq -r '.result.contents[0].text' | grep -oE '<script[^>]*src="https?://[^"]+"[^>]*>'
Fix
<script src="https://cdn.acme.example/chart@4.4.1/chart.min.js"
integrity="sha384-REPLACE_WITH_REAL_HASH" crossorigin="anonymous"></script>
Better, bundle the script into the template and drop the origin from resourceDomains.
Verify
Every external script has an integrity attribute or a pinned version, then re-scan.
Which clients care
ChatGPT and Claude, per the rule.
Source
OpenAI ChatGPT UI guide: https://developers.openai.com/plugins/build/chatgpt-ui
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.