CVE-2026-46644: symfony/polyfill-intl-idn Xn-- Labels With ASCII-only Punycode Vulnerability

LOW
Advisory Identifier: GHSA-2xf4-cg6j-vhgq
CWE-1289
Published
Advisory Summary

CVE-2026-46644 is a LOW xn-- labels with ascii-only punycode vulnerability (CWE-1289: Improper Validation of Unsafe Equivalence in Input) affecting symfony/polyfill-intl-idn libraries in the Packagist ecosystem. The issue involves xn-- labels with ascii-only punycode payloads are treated as equivalent to their decoded form. Remediation is available by upgrading affected packages to version 1.38.1.

CVE-2026-46644 at a Glance

CVE Identifier CVE-2026-46644
GHSA Identifier GHSA-2xf4-cg6j-vhgq
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1289: Improper Validation of Unsafe Equivalence in Input
Affected Product symfony/polyfill-intl-idn
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-46644

To remediate this vulnerability, upgrade all affected symfony/polyfill-intl-idn dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/polyfill fixed: 1.38.1
Upgrade symfony/polyfill to 1.38.1
symfony/polyfill-intl-idn fixed: 1.38.1
Upgrade symfony/polyfill-intl-idn to 1.38.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/polyfill

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-46644, inspect your project dependencies for symfony/polyfill-intl-idn:

inspect dependencies for symfony/polyfill

Analyze the terminal output to locate any version of symfony/polyfill-intl-idn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.38.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1289: Improper Validation of Unsafe Equivalence in Input, where the product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value. In symfony/polyfill-intl-idn, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Description `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`: | Input | Polyfill output | Native `ext-intl` output | | --- | --- | --- | | `poc.xn--kc1zs4-.com` | `poc.kc1zs4.com` | `false` (`errors=1024`) | | `poc.kc1zs4.xn--` | `poc.kc1zs4.` | `false` (`errors=1024`) | Applications using the polyfill to canonicalise or compare hostnames inherit the inconsistency. ### Resolution `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. The patch for this issue is available [here](https://github.com/symfony/polyfill/commit/1be936e2491ccebe152bd736dfc91eb1422c8bec) for branch 1.x. ### Credits Symfony would like to thank Nazy Mad for reporting the issue and Nicolas Grekas for providing the fix.

CVE-2026-46644 Affected symfony/polyfill-intl-idn Versions

2 component(s)
Fixed Versions:
1.38.1
Product / Package Ecosystem Affected Versions Fixed Version
symfony/polyfill
Packagist
≥ 1.17.1
< 1.38.1
1.38.1
symfony/polyfill-intl-idn
Packagist
≥ 1.17.1
< 1.38.1
1.38.1

References

Frequently Asked Questions

What is CVE-2026-46644?
CVE-2026-46644 is a security vulnerability in symfony/polyfill-intl-idn involving xn-- labels with ASCII-only Punycode payloads are treated as equivalent to their decoded form under CWE-1289: Improper Validation of Unsafe Equivalence in Input.
Which symfony/polyfill-intl-idn versions are affected?
Affected versions include releases prior to 1.38.1 across affected packages: symfony/polyfill, symfony/polyfill-intl-idn.
What version fixes CVE-2026-46644?
Upgrading to 1.38.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/polyfill affected?
Yes, symfony/polyfill is affected in releases prior to 1.38.1. Upgrade your dependency to 1.38.1 or later.
Is symfony/polyfill-intl-idn affected?
Yes, symfony/polyfill-intl-idn is affected in releases prior to 1.38.1. Upgrade your dependency to 1.38.1 or later.
What CWE is associated with CVE-2026-46644?
CVE-2026-46644 is classified under CWE-1289: Improper Validation of Unsafe Equivalence in Input (The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.).
How can I check Packagist dependencies for CVE-2026-46644?
Run the dependency tree command: 'inspect dependencies for symfony/polyfill'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2xf4-cg6j-vhgq",
  "modified" : "2026-05-28T19:52:36Z",
  "published" : "2026-05-28T19:52:36Z",
  "aliases" : [ "CVE-2026-46644" ],
  "summary" : "symfony/polyfill-intl-idn: xn-- labels with ASCII-only Punycode payloads are treated as equivalent to their decoded form",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/polyfill"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.1"
      }, {
        "fixed" : "1.38.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/polyfill-intl-idn"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.1"
      }, {
        "fixed" : "1.38.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/polyfill/security/advisories/GHSA-2xf4-cg6j-vhgq"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/polyfill/commit/1be936e2491ccebe152bd736dfc91eb1422c8bec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill-intl-idn/CVE-2026-46644.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill/CVE-2026-46644.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/polyfill"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/cve-2026-46644"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1289" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-28T19:52:36Z",
    "nvd_published_at" : null
  }
}