{"data":{"id":"d00fc812-bd67-4d12-b205-0dc03f379b2b","title":"GHSA-4rj4-rcrq-gr92: Safari MCP: JavaScript injection through single-quoted tool arguments (backslash not escaped)","summary":"Sixteen sites in `safari.js` of Safari MCP placed tool arguments inside single-quoted JavaScript string literals and escaped the quote without escaping backslashes first. A backslash followed by a quote closed the literal, so the remaining argument text ran as JavaScript in the page, including through seven read-only tools that are exempt from the tab-ownership check. An MCP client restricted to read-only tools with `safari_evaluate` and `safari_run_script` excluded could still execute arbitrary page JavaScript, including in tabs the session does not own.","solution":"Fixed in 2.22.15: every affected site now uses the shared `escJsSingleQuote`, which escapes the backslash before the quote, and a test fails the build if a quote-only escape returns. Upgrade to 2.22.15; there is no configuration workaround, since excluding `safari_evaluate` and `safari_run_script` from a client's tool list did not prevent the injection.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-4rj4-rcrq-gr92","publishedAt":"2026-11-19T22:17:05.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":"medium","severity":"medium","attackType":["other"],"issueType":"vulnerability","affectedPackages":["safari-mcp@< 2.22.15 (fixed: 2.22.15)"],"affectedPackageNames":["safari-mcp"],"affectedPackageRefs":["npm:safari-mcp"],"affectedVendors":[],"affectedVendorsRaw":["Safari MCP"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-4rj4-rcrq-gr92"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-11-19T22:17:05.000Z","fixReleasedAt":"2026-10-10T19:16:09.845Z","daysToFix":-40,"fixCheckedAt":"2026-11-20T00:11:28.126Z","capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity"],"aiComponentTargeted":"plugin","llmSpecific":false,"classifierConfidence":0.85,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"npm","name":"safari-mcp","fixedVersion":"2.22.15","matchedVersion":"2.22.15","fixReleasedAt":"2026-10-10T19:16:09.845Z","daysToFix":-40,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-11-20T00:11:28.124Z"}]}}