CPANSA--2026-19953: URI vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-08-31T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-08-31T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 6.5 | Severity | Medium |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
URI versions before 5.36 for Perl encode non-NFC host names to non-standard punycode labels via missing normalization in nameprep.
nameprep lowercases each host label but performs no Unicode normalization. IDNA requires a label to be normalized to Form C before it is encoded (RFC 5891), so a label that is not already in NFC is encoded to a different A-label than its normalized form. A label built from the precomposed Devanagari sequence U+0958 U+093E encodes to xn--72b5c without normalization but to xn--11b2fg after NFC normalization, and xn--72b5c does not round-trip back to the original label.
Any caller that reads host() from a URI built from untrusted input and uses it for a security decision (an allow or deny list, an SSRF filter, deduplication, a cache key) sees the non-standard label, while a client that fetches the same URL resolves the NFC form, so the check and the fetch can disagree about the host.
Vulnerabilities
CVE-2026-19953
Vulnerability DescriptionURI versions before 5.36 for Perl encode non-NFC host names to non-standard punycode labels via missing normalization in nameprep.
nameprep lowercases each host label but performs no Unicode normalization. IDNA requires a label to be normalized to Form C before it is encoded (RFC 5891), so a label that is not already in NFC is encoded to a different A-label than its normalized form. A label built from the precomposed Devanagari sequence U+0958 U+093E encodes to xn--72b5c without normalization but to xn--11b2fg after NFC normalization, and xn--72b5c does not round-trip back to the original label.
Any caller that reads host() from a URI built from untrusted input and uses it for a security decision (an allow or deny list, an SSRF filter, deduplication, a cache key) sees the non-standard label, while a client that fetches the same URL resolves the NFC form, so the check and the fetch can disagree about the host.
| Weakness | CWE-1289 : Improper Validation of Unsafe Equivalence in Input |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| URI less than 5.36 |
|
Fixed
- URI greater than or equal 5.36
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA--2026-19953 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa--2026-19953.json - https://github.com/libwww-perl/URI/commit/956619a9e94f86d8d2c529b4e06a3674c54a73e7.patch external
https://github.com/libwww-perl/URI/commit/956619a9e94f86d8d2c529b4e06a3674c54a73e7.patch - https://github.com/libwww-perl/URI/pull/191 external
https://github.com/libwww-perl/URI/pull/191 - https://metacpan.org/release/OALDERS/URI-5.36/changes external
https://metacpan.org/release/OALDERS/URI-5.36/changes - https://www.rfc-editor.org/rfc/rfc5891#section-5.2 external
https://www.rfc-editor.org/rfc/rfc5891#section-5.2 - http://www.openwall.com/lists/oss-security/2026/08/31/14 external
http://www.openwall.com/lists/oss-security/2026/08/31/14 - CVE-2026-19953 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-19953
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Mon Aug 31 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/