PT-2026-162370
Publicado
2026-11-19
·
Atualizado
2026-11-19
Descrição por
CVSS 4.0
6.2
MédiaMétricasAV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Impact
Sixteen places in
safari.js placed a tool argument inside a single-quoted JavaScript string literal and escaped the single quote without first escaping backslashes. An argument containing a backslash followed by a quote therefore closed the literal, and the rest of the argument ran as JavaScript in the page.Seven of the affected arguments belong to read-only tools that are exempt from the tab-ownership check:
filter in safari network details and safari extract links, level in safari console filter, selector in safari snapshot, safari accessibility snapshot and safari extract tables, and dbName / storeName in safari get indexed db. An MCP client limited to read-only tools (with safari evaluate and safari run script excluded from its allowlist) could still run arbitrary page JavaScript through them, including in a tab the session does not own. The other affected arguments are ref in safari select option, safari react select set and safari react select list options, the key in safari press key, the file name in safari upload file and safari paste image, and the first line of the text in safari replace editor.Patches
Fixed in 2.22.15: every affected site uses the shared
escJsSingleQuote, which escapes the backslash before the quote, and a test fails the build if a quote-only escape returns.Workarounds
Upgrade to 2.22.15. There is no configuration workaround: excluding
safari evaluate and safari run script from a client's tool list did not prevent the injection.Credits
Reported privately on 2026-10-09 by Aliaksandr Palei (@fakepooh) under the coordinated-disclosure process in SECURITY.md.
Explorabilidade
Correção
Impactos
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾