Description
Cpanel::JSON::XS versions from 4.43 before 4.80 for Perl misorder byte-string keys during canonical encoding in utf16_cmp.

canonical sorts keys by UTF-16 code units. When any key in a hash is UTF-8 flagged, every key is decoded as UTF-8 for the comparison, including byte-string keys that the encoder writes out as Latin-1 characters. A byte-string key whose bytes are valid UTF-8 is sorted out of order, and two keys that encode differently can compare equal and are left in hash order.

The same data can encode to different canonical documents across processes.
Published: 2026-10-19
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Serialization inconsistency due to incorrect key sorting
Action: Immediate Patch
AI Analysis

Impact

The affected modules misorder byte‑string keys when performing canonical encoding. Keys that are flagged as UTF‑8 are decoded as UTF‑8 for comparison, causing Latin‑1 keys whose byte sequence is valid UTF‑8 to be sorted incorrectly. This leads to two distinct canonical documents for the same input, potentially undermining any process that relies on deterministic ordering for verification, caching, or security checks.

Affected Systems

Perl users of Cpanel::JSON::XS versions 4.43 through 4.79 are impacted. The issue does not affect later releases, starting with 4.80. Systems that depend on canonical JSON encoding and use those versions are therefore at risk.

Risk and Exploitability

The vulnerability has no known public exploits and is not listed in the CISA KEV catalog. The CVSS score is 7.5, and the EPSS score is less than 1%. While the flaw does not directly grant code execution or high‑impact lateral movement, it can break consistency guarantees and expose systems to subtle integrity problems if identical documents are expected to match across processes. The likely attack vector involves an attacker providing a crafted JSON payload to a vulnerable application that performs canonical encoding, potentially causing inconsistent ordering across different processes and enabling integrity violations or denial of service.

Generated by OpenCVE AI on October 29, 2026 at 22:16 UTC.

Remediation

Vendor Solution

Upgrade to Cpanel-JSON-XS 4.80 or later.


OpenCVE Recommended Actions

  • Upgrade to Cpanel-JSON-XS 4.80 or later
  • Update any dependent modules or scripts to reference the updated library version
  • Run regression or unit tests on canonical encoding to verify consistent ordering across environments

Generated by OpenCVE AI on October 29, 2026 at 22:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Rurban
Rurban cpanel::json::xs
Vendors & Products Rurban
Rurban cpanel::json::xs

Mon, 19 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Description Cpanel::JSON::XS versions from 4.43 before 4.80 for Perl misorder byte-string keys during canonical encoding in utf16_cmp. canonical sorts keys by UTF-16 code units. When any key in a hash is UTF-8 flagged, every key is decoded as UTF-8 for the comparison, including byte-string keys that the encoder writes out as Latin-1 characters. A byte-string key whose bytes are valid UTF-8 is sorted out of order, and two keys that encode differently can compare equal and are left in hash order. The same data can encode to different canonical documents across processes.
Title Cpanel::JSON::XS versions from 4.43 before 4.80 for Perl misorder byte-string keys during canonical encoding in utf16_cmp
Weaknesses CWE-176
References

Subscriptions

Rurban Cpanel::json::xs
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-29T17:15:37.701Z

Reserved: 2026-10-14T13:27:15.271Z

Link: CVE-2026-110687

cve-icon Vulnrichment

Updated: 2026-10-29T17:14:53.182Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-19T19:17:22.307

Modified: 2026-10-29T18:17:22.573

Link: CVE-2026-110687

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T22:30:13Z

Weaknesses
  • CWE-176

    Improper Handling of Unicode Encoding