{"id":"CVE-2026-46644","aliases":["CVE-2026-46644","GHSA-2xf4-cg6j-vhgq"],"related":[],"kind":"vulnerability","state":"published","title":"symfony/polyfill-intl-idn accepts xn-- labels whose Punycode payload decodes to ASCII-only: insecure equivalence","summary":"Symfony Polyfill backports PHP features and provides compatibility layers for extensions and functions. From 1.17.1 until 1.38.1, symfony/polyfill-intl-idn accepts xn-- labels whose Punycode payload is empty or decodes to ASCII-only code points because Idn::process() does not enforce the UTS #46 revision 33 requirement that decoded ACE labels contain at least one non-ASCII code point. Originally unequal domain names can be regarded as equal, which can lead to blacklist bypassing, inconsistent URL parsing, and server-side request forgery in applications using the polyfill to canonicalise or compare hostnames. This issue is fixed in version 1.38.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Symfony Polyfill backports PHP features and provides compatibility layers for extensions and functions. From 1.17.1 until 1.38.1, symfony/polyfill-intl-idn accepts xn-- labels whose Punycode payload is empty or decodes to ASCII-only code points because Idn::process() does not enforce the UTS #46 revision 33 requirement that decoded ACE labels contain at least one non-ASCII code point. Originally unequal domain names can be regarded as equal, which can lead to blacklist bypassing, inconsistent URL parsing, and server-side request forgery in applications using the polyfill to canonicalise or compare hostnames. This issue is fixed in version 1.38.1.","source":"cvelist"},{"lang":"en","text":"### Description\n\n`symfony/polyfill-intl-idn` provides a userland implementation of `idn_to_utf8()` and `idn_to_ascii()` for runtimes that lack the `intl` extension. Its `Idn::process()` method decodes labels prefixed with `xn--` using Punycode but never enforces the validity criterion added in UTS #46 revision 33 Section 4 step 4.1.2: after a successful Punycode decode, the result must contain at least one non-ASCII code point.\n\nAs a consequence, `xn--` labels whose Punycode payload is empty (`xn--`) or decodes to a string made of only ASCII code points (e.g. `xn--kc1zs4-`) are accepted by the polyfill while PHP's native `ext-intl` rejects them with `IDNA_ERROR_INVALID_ACE_LABEL`. Originally unequal domain names are therefore regarded as equal, which can lead to blacklist bypassing, inconsistent URL parsing and server-side request forgery (similar to CVE-2024-12224).\n\nExample with `IDNA_USE_STD3_RULES | IDNA_CHECK_BIDI | IDNA_CHECK_CONTEXTJ | IDNA_NONTRANSITIONAL_TO_ASCII`:\n\n| Input | Polyfill output | Native `ext-intl` output |\n| --- | --- | --- |\n| `poc.xn--kc1zs4-.com` | `poc.kc1zs4.com` | `false` (`errors=1024`) |\n| `poc.kc1zs4.xn--` | `poc.kc1zs4.` | `false` (`errors=1024`) |\n\nApplications using the polyfill to canonicalise or compare hostnames inherit the inconsistency.\n\n### Resolution\n\n`Idn::process()` now records `IDNA_ERROR_INVALID_ACE_LABEL` when a Punycode payload decodes to an empty string or to a string containing only ASCII code points, matching the native `ext-intl` behaviour and UTS #46 revision 33.\n\nThe patch for this issue is available [here](https://github.com/symfony/polyfill/commit/1be936e2491ccebe152bd736dfc91eb1422c8bec) for branch 1.x.\n\n### Credits\n\nSymfony would like to thank Nazy Mad for reporting the issue and Nicolas Grekas for providing the fix.","format":"markdown","source":"ghsa"}],"published":"2026-05-28T19:52:36.000Z","modified":"2026-09-10T03:51:04.192Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:U","rating":"LOW"}],"cwes":["CWE-1289"],"affected":[{"ranges":[{"version":">= 1.17.1, < 1.38.1","status":"affected"}],"vendor":"symfony","product":"polyfill","source":"cvelist"},{"ranges":[{"version":">= 1.17.1, < 1.38.1","status":"affected"}],"vendor":"symfony","product":"polyfill-intl-idn","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.17.1","status":"affected","fixed":"1.38.1"}],"ecosystem":"Packagist","package":"symfony/polyfill","purl":"pkg:composer/symfony/polyfill","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.17.1","status":"affected","fixed":"1.38.1"}],"ecosystem":"Packagist","package":"symfony/polyfill-intl-idn","purl":"pkg:composer/symfony/polyfill-intl-idn","source":"ghsa"}],"references":[{"url":"https://github.com/symfony/polyfill/security/advisories/GHSA-2xf4-cg6j-vhgq","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/polyfill/commit/1be936e2491ccebe152bd736dfc91eb1422c8bec","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/symfony/polyfill/releases/tag/v1.38.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill-intl-idn/CVE-2026-46644.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill/CVE-2026-46644.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/polyfill","tags":["package"],"sources":["ghsa"]},{"url":"https://symfony.com/cve-2026-46644","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-15T12:52:21.173Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46644","url":"https://www.cve.org/CVERecord?id=CVE-2026-46644","licence":"CVE Terms of Use","modified":"2026-07-15T12:52:31.603Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2xf4-cg6j-vhgq","url":"https://github.com/advisories/GHSA-2xf4-cg6j-vhgq","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.192Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46644","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46644","licence":"Public domain","modified":"2026-07-15T18:16:22.887Z"}],"updatedAt":"2026-11-25T22:59:28.213Z","epss":{"score":0.00482,"percentile":0.43166,"date":"2026-12-01T12:00:22.000Z"}}