← Back to scan
File as GitHub Issue repo: modelcontextprotocol/typescript-sdk

Push this scan report to modelcontextprotocol/typescript-sdk

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

innerHTML XSS — template literal with server-supplied data

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED019 [MINED019] Ssti Jinja From String: jinja2.Environment().from_string(user_input) — full RC… packages/core/src/types/guards.ts:105
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/core/src/shared/uriTemplate.ts:274
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/core/src/experimental/tasks/st…:68
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/codemod/scripts/generateVersio…:24
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/codemod/scripts/generateSpecSc…:24
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/client/src/client/middleware.ts:170
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/server/src/standaloneSseWithGe…:50
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/server/src/simpleStatelessStre…:99
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/server/src/jsonResponseStreama…:85
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… examples/server/src/honoWebStandardStre…:47
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/client/src/simpleClientCredent…:64
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/client/src/parallelToolCallsCl…:36
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/client/src/multipleClientsPara…:32
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/shared/src/auth.ts:158
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/publish.yml:27
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/publish.yml:19
HIGH MINED115 Action `actions/deploy-pages` pinned to mutable ref `@v5` .github/workflows/deploy-docs.yml:53
HIGH MINED115 Action `actions/upload-pages-artifact` pinned to mutable ref `@v4` .github/workflows/deploy-docs.yml:47
HIGH MINED115 Action `actions/configure-pages` pinned to mutable ref `@v6` .github/workflows/deploy-docs.yml:44
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/deploy-docs.yml:34
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/deploy-docs.yml:28
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/release.yml:61
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/release.yml:53
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/release.yml:28
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/release.yml:20
HIGH MINED115 Action `anthropics/claude-code-action` pinned to mutable ref `@v1` .github/workflows/claude.yml:36
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/claude.yml:30
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/main.yml:75
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/main.yml:70
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/main.yml:49
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/main.yml:42
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/main.yml:24
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/main.yml:17
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/update-spec-types.yml:27
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/update-spec-types.yml:18
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/conformance.yml:44
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/conformance.yml:39
HIGH MINED115 Action `actions/setup-node` pinned to mutable ref `@v6` .github/workflows/conformance.yml:26
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/conformance.yml:21
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/client/src/ssePollingClient.ts:85
HIGH MINED113 Express POST /mcp has no auth examples/server/src/resourceServerOnly.…:76
HIGH MINED113 Express DELETE /mcp has no auth examples/server/src/simpleStatelessStre…:141
HIGH MINED113 Express POST /mcp has no auth examples/server/src/simpleStatelessStre…:99
HIGH MINED113 Express POST /mcp has no auth examples/server/src/standaloneSseWithGe…:50
HIGH MINED113 Express POST /mcp has no auth examples/server/src/jsonResponseStreama…:85
HIGH MINED113 Express POST /mcp has no auth packages/middleware/node/src/streamable…:52
HIGH MINED113 Express POST /mcp has no auth packages/middleware/node/src/streamable…:62
HIGH MINED113 Express DELETE /mcp has no auth test/conformance/src/everythingServer.ts:996
HIGH MINED113 Express POST /mcp has no auth test/conformance/src/everythingServer.ts:893
HIGH MINED113 Express DELETE /mcp has no auth test/conformance/src/authTestServer.ts:389
HIGH MINED113 Express POST /mcp has no auth test/conformance/src/authTestServer.ts:293
HIGH MINED113 Express POST /message has no auth scripts/cli.ts:84
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/shared/src/auth.ts:42
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED JRN003 Frontend API reference is not matched by discovered backend routes packages/core/src/shared/authUtils.ts:50
MED JRN003 Frontend API reference is not matched by discovered backend routes packages/core/src/shared/authUtils.ts:49
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/middleware/hono/src/hono.ts:19
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/middleware/fastify/src/fastify…:1
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/middleware/fastify/src/fastify…:2
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/middleware/express/src/express…:1
MED AGT012 Agent control bridge may listen on a network interface without visible auth packages/middleware/express/src/express…:2
MED AGT012 Agent control bridge may listen on a network interface without visible auth examples/server/src/serverGuide.example…:13
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … packages/middleware/express/src/auth/me…:56
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … packages/middleware/node/src/streamable…:62
LOW AIC003 Duplicated implementation block across source files packages/client/src/client/streamableHt…:117
LOW AIC003 Duplicated implementation block across source files test/conformance/src/everythingServer.ts:781
LOW AIC003 Duplicated implementation block across source files packages/server/tsdown.config.ts:5
LOW AIC003 Duplicated implementation block across source files packages/server/src/server/stdio.ts:38
LOW AIC003 Duplicated implementation block across source files packages/server/src/server/server.ts:356
LOW AIC003 Duplicated implementation block across source files packages/server/src/server/server.ts:166
LOW AIC003 Duplicated implementation block across source files packages/server/src/experimental/tasks/…:24
LOW AIC003 Duplicated implementation block across source files packages/middleware/node/tsdown.config.…:5
LOW AIC003 Duplicated implementation block across source files packages/middleware/hono/tsdown.config.…:1
LOW AIC003 Duplicated implementation block across source files packages/middleware/fastify/tsdown.conf…:1
LOW WEB005 robots.txt does not advertise a sitemap pnpm-lock.yaml
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… scripts/generate-multidoc.sh:44
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/server/src/server/middleware/h…:25
INFO MINED074 [MINED074] Ai Tell Fake Citation: Plausible-looking but non-existent URLs (e.g., docs.exa… packages/client/src/client/middleware.e…:27
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. examples/shared/src/auth.ts:218
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/codemod/scripts/generateSpecSc…:14
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … examples/server/src/standaloneSseWithGe…:159
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … examples/server/src/honoWebStandardStre…:33
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/client/src/ssePollingClient.ts:85
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/client/src/simpleClientCredent…:52
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/client-quickstart/src/index.ts:170
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … examples/client/src/dualModeAuth.ts:74
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … examples/client/src/customMethodExample…:17
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … examples/client-quickstart/src/index.ts:50
Reset to top 5 88 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `modelcontextprotocol/typescript-sdk`

**Score: 69/100 (B+)**  ·  101 findings  ·  scanned 2026-05-24 01:20 UTC  ·  93,152 LOC

| Severity | Count |
|---|---|
| CRITICAL | 1 |
| HIGH | 51 |
| MEDIUM | 12 |
| LOW | 11 |

📊 [Full filterable report](https://repobility.com/scan/941e20b9-d91f-4609-a0f4-1b7fa3f6e58f/)  ·  ![scorecard](https://repobility.com/scan/941e20b9-d91f-4609-a0f4-1b7fa3f6e58f/report.png?v=1779585607-s2)

### Top findings

1. **CRITICAL** `MINED019` — Ssti Jinja From String
   `packages/core/src/types/guards.ts:105` · CWE-94 · ✓ Repobility
2. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/core/src/shared/uriTemplate.ts:274`
3. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `packages/core/src/experimental/tasks/stores/inMemory.ts:68`
4. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `packages/codemod/scripts/generateVersions.ts:24` · CWE-79 · A03:2021 Injection (XSS)
5. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `packages/codemod/scripts/generateSpecSchemaMap.ts:24` · CWE-79 · A03:2021 Injection (XSS)

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/941e20b9-d91f-4609-a0f4-1b7fa3f6e58f/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 15 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'modelcontextprotocol/typescript-sdk' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
97/152 findings (64%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.