Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/polyfill-intl-idn
  4. ›
  5. CVE-2026-46644

CVE-2026-46644: symfony/polyfill-intl-idn: xn-- labels with ASCII-only Punycode payloads are treated as equivalent to their decoded form

May 28, 2026

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.

As 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).

Example with IDNA_USE_STD3_RULES | IDNA_CHECK_BIDI | IDNA_CHECK_CONTEXTJ | IDNA_NONTRANSITIONAL_TO_ASCII:

InputPolyfill outputNative ext-intl output
poc.xn--kc1zs4-.compoc.kc1zs4.comfalse (errors=1024)
poc.kc1zs4.xn--poc.kc1zs4.false (errors=1024)

Applications using the polyfill to canonicalise or compare hostnames inherit the inconsistency.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill-intl-idn/CVE-2026-46644.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill/CVE-2026-46644.yaml
  • github.com/advisories/GHSA-2xf4-cg6j-vhgq
  • github.com/symfony/polyfill/commit/1be936e2491ccebe152bd736dfc91eb1422c8bec
  • github.com/symfony/polyfill/security/advisories/GHSA-2xf4-cg6j-vhgq
  • nvd.nist.gov/vuln/detail/CVE-2026-46644
  • symfony.com/cve-2026-46644

Code Behaviors & Features

Detect and mitigate CVE-2026-46644 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.17.1 before 1.38.1

Fixed versions

  • 1.38.1

Solution

Upgrade to version 1.38.1 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1289: Improper Validation of Unsafe Equivalence in Input

Source file

packagist/symfony/polyfill-intl-idn/CVE-2026-46644.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.