{"id":"CVE-2026-121373","kind":"vulnerability","aliases":["CVE-2026-121373"],"related":[],"title":"Symfony HtmlSanitizer: meta refresh bypass allows redirects to untrusted sites","description":"The Symfony HtmlSanitizer component MetaRefreshAttributeSanitizer, introduced to fix CVE-2026-48761, sanitizes the refresh URL of content attributes of meta tags using a regular expression that is too narrow, allowing sanitization to be bypassed, and resulting in potential URL redirection to untrusted sites in Symfony versions 6.1.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11.\n\n\n\n\nThe shared declarative refresh steps in the WHATWG HTML Standard require a broader approach: the separator after the time may be ASCII whitespace alone, with no ; or ,, and the url= keyword is optional. Directives the browser honours, but the regular expression misses are returned unchanged, so the attacker URL skips UrlSanitizer entirely and both allowLinkSchemes and allowLinkHosts are defeated for the refresh navigation.\n\n\n\n\nThis is reachable under any configuration that allows meta with http-equiv and content, including the documented allowStaticElements() preset.","summary":"The Symfony HtmlSanitizer component fails to sanitize some meta refresh directives, so attacker-supplied URLs pass through unchanged. An attacker can make a sanitized page redirect a visitor to an untrusted site, bypassing the configured link scheme and host allowlists.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["html-sanitizer","package","php","symfony"],"not_affected_if":["meta-tags-not-allowed","no-user-html"],"how_to_check":"- Check the installed Symfony version with `composer show symfony/html-sanitizer` and compare it with the fixed ranges below.\n- Search your code for `HtmlSanitizer` and `allowStaticElements()` to see whether meta tags with http-equiv and content are allowed.","fix":"- Symfony 6.1.x: move to `6.4.50` or later\n- Symfony 7.x: move to `7.4.23` or later\n- Symfony 8.x: move to `8.1.11` or later","status":"open","published_at":"2026-11-04T13:17:27+00:00","first_seen_at":"2026-11-04T13:27:01+00:00","triaged_at":"2026-11-04T13:28:13+00:00","updated_at":"2026-11-04T13:28:13+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-04T13:28:13Z","model":"claude-haiku-5-5","output":{"fix":"- Symfony 6.1.x: move to `6.4.50` or later\n- Symfony 7.x: move to `7.4.23` or later\n- Symfony 8.x: move to `8.1.11` or later","reach":"internet","title":"Symfony HtmlSanitizer: meta refresh bypass allows redirects to untrusted sites","impact":"low","summary":"The Symfony HtmlSanitizer component fails to sanitize some meta refresh directives, so attacker-supplied URLs pass through unchanged. An attacker can make a sanitized page redirect a visitor to an untrusted site, bypassing the configured link scheme and host allowlists.","audience":"developers","category":"package","nicknames":[],"who_cares":["symfony","php","html-sanitizer"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"visitors get redirected to attacker-chosen untrusted sites","analyst_note":"","how_to_check":"- Check the installed Symfony version with `composer show symfony/html-sanitizer` and compare it with the fixed ranges below.\n- Search your code for `HtmlSanitizer` and `allowStaticElements()` to see whether meta tags with http-equiv and content are allowed.","plain_action":"","needs_analyst":false,"not_affected_if":["no-user-html","meta-tags-not-allowed"],"who_is_affected":"Applications that use the Symfony HtmlSanitizer component to sanitize untrusted HTML and allow meta tags with http-equiv and content, including the allowStaticElements() preset. Applications that do not sanitize user HTML with this component, or that do not allow meta refresh tags, are not exposed.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000755,"input_tokens":4426,"output_tokens":624,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-121373':13A,16A '-2026':12A,15A,73C '-48761':74C '6.1':110C '6.4.50':114C '7':115C '7.4.23':119C '8':121C '8.1.11':125C 'allow':6A,93C,196C 'allowlinkhost':182C 'allowlinkschem':180C 'allowlist':63B 'allowstaticel':207C 'alon':149C 'approach':139C 'ascii':147C 'attack':36B,43B,173C 'attacker-suppli':35B 'attribut':81C 'broader':138C 'browser':161C 'bypass':5A,56B,97C 'compon':26B,67C 'configur':58B,194C 'content':80C,203C 'cve':11A,14A,72C 'declar':128C 'defeat':184C 'direct':33B,159C 'document':206C 'entir':177C 'equiv':201C 'express':88C,166C 'fail':27B 'fix':71C 'honour':162C 'host':62B 'html':18B,134C 'html-sanit':17B 'htmlsanit':2A,25B,66C 'http':200C 'http-equiv':199C 'includ':204C 'introduc':69C 'keyword':156C 'link':59B 'make':45B 'may':145C 'meta':3A,31B,83C,197C 'metarefreshattributesanit':68C 'miss':167C 'narrow':92C 'navig':188C 'option':158C 'packag':20B 'page':48B 'pass':39B 'php':21B 'potenti':101C 'preset':208C 'prior':112C,117C,123C 'reachabl':191C 'redirect':7A,49B,103C 'refresh':4A,32B,77C,129C,187C 'regular':87C,165C 'requir':136C 'result':99C 'return':169C 'sanit':19B,29B,47B,75C,94C 'scheme':60B 'separ':141C 'share':127C 'site':10A,55B,106C 'skip':175C 'standard':135C 'step':130C 'suppli':37B 'symfoni':1A,22B,24B,65C,108C 'tag':84C 'time':144C 'unchang':41B,170C 'untrust':9A,54B,105C 'url':38B,78C,102C,155C,174C 'urlsanit':176C 'use':85C 'version':109C 'visitor':51B 'whatwg':133C 'whitespac':148C 'x':111C,116C,122C","nicknames":[],"mitigations":[],"who_affected":"Applications that use the Symfony HtmlSanitizer component to sanitize untrusted HTML and allow meta tags with http-equiv and content, including the allowStaticElements() preset. Applications that do not sanitize user HTML with this component, or that do not allow meta refresh tags, are not exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["htmlsanitizer","medium","package","php","symfony"],"campaign_type":null,"first_public_at":"2026-11-04T11:43:54+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"596c5446-0ce5-4ba2-aa66-48b3b757a647","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-121373","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121373","severity":null,"published_at":"2026-11-04T13:17:27+00:00","modified_at":"2026-11-04T13:17:27+00:00","first_seen_at":"2026-11-04T13:27:01+00:00","fetched_at":"2026-11-04T13:27:01+00:00","note":null}],"documents":[{"id":67062,"url":"https://github.com/symfony/symfony/commit/2d4c4fe36200858b91132a95076fff3d9de89d26","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":67063,"url":"https://github.com/symfony/symfony/security/advisories/GHSA-wm2w-4mgj-vw33","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-04T11:43:54+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}