Skip to content
OpenAdvisories
Critical SUSE-SU-2026:4926-1 18 CVEs

Security update for perl-Cpanel-JSON-XS

Published Oct 28, 2026 · Updated Oct 29, 2026

Summary

This update for perl-Cpanel-JSON-XS fixes the following issues:

- CVE-2025-40929: integer overflow (bsc#1249331).
- CVE-2026-9334: type confusion via duplicate object keys when `dupkeys_as_arrayref` is enabled (bsc#1267546).
- CVE-2026-9516: denial of service via UTF-8 BOM prefixed input when a decode filter callback throws (bsc#1267547).
- CVE-2026-110672: leak of decoded key of an object rejected for a duplicate key or a missing colon in `decode_hv`
(bsc#1286166).
- CVE-2026-110673: stack exhaustion via nested tagged values under `allow_tags` in `decode_tag` (bsc#1286167).
- CVE-2026-110674: duplicate non-ASCII bare keys are missed, allowing type confusion under `dupkeys_as_arrayref` in
`decode_hv` (bsc#1286168).
- CVE-2026-110675: malformed UTF-8 accepted in bare hash keys under `allow_barekey` in `decode_hv` (bsc#1286169).
- CVE-2026-110676: memory exhaustion by encoding exponent notation as full decimal digits under `allow_bignum`
(bsc#1286170).
- CVE-2026-110677: array collecting duplicate key values leaked under `dupkeys_as_arrayref` in `decode_hv`
(bsc#1286173).
- CVE-2026-110678: memory exhaustion by buffering incremental input past `max_size` in `incr_parse` (bsc#1286174).
- CVE-2026-110680: out-of-bounds write when a tied or shared hash grows during canonical encoding in `encode_hv`
(bsc#1286175).
- CVE-2026-110681: parent interpreter's scalars from a parser object cloned into a new `ithread` (bsc#1286176).
- CVE-2026-110682: input chunking can change the decoded value of top-level numbers in `incr_parse` (bsc#1286177).
- CVE-2026-110684: memory leaked and overloaded objects retained when encoding values as strings in `encode_stringify`
(bsc#1286179).
- CVE-2026-110685: decoded arguments of a tagged value leaked when its THAW method dies in `decode_tag` (bsc#1286180).
- CVE-2026-110686: freed filter callbacks used when a filter removes itself during decoding in `decode_hv`
(bsc#1286181).
- CVE-2026-110687: byte-string keys misordered during canonical encoding in `utf16_cmp` (bsc#1286182).
- CVE-2026-110688: quadratic CPU use due to remaining buffer revalidation per value in `incr_parse` (bsc#1286183).

Changes for perl-Cpanel-JSON-XS:

- updated to 4.800.0 (4.80)
- Add version markers to all module files. (PR #260 demerphq)
- Use utf8n_to_uvchr on Perl 5.32 and later to avoid the deprecated
utf8n_to_uvuni API. (PR #260 demerphq)
- Add schema-based validation for decoded JSON (GH #238):
Cpanel::JSON::XS::Type now provides check_type($data, $schema[,
$found_type]), which validates an already-decoded perl structure
against a type spec built from the existing encoder building
blocks (JSON_TYPE_* / json_type_arrayof / json_type_hashof /
json_type_anyof), plus the new json_type_optional() for hash keys
that may be absent, and short scalar type name sugar ('Str',
'Int', 'Float', 'Bool', 'Null', 'Any', and nullable 'Str?' etc.)
so a schema reads as 'just a hash of keys and types', as
requested. Unlike the encoder's hash type spec, a plain hashref
schema is closed: unknown keys and missing required keys are
reported. New $json->decode_and_validate($json_text, $schema)
method decodes and croaks with all mismatches if validation
fails, using decode()'s own type introspection as ground truth to
avoid perl's usual dual-var/stringified-number ambiguity.
- json_type_optional() and the nullable '?' type-name suffixes
('Str?', 'Int?', 'Float?', 'Bool?') give schemas an explicit way
to declare a key/value as optional instead of demanding a
complete type specification for every key. The encoder now also
understands json_type_optional() directly (it unwraps to the
wrapped type, since encode() only ever sees keys that are
actually present): the exact same type spec built for
check_type()/decode_and_validate() can now be handed to encode()
as-is, instead of croaking with 'no type was specified for hash
key '...'' for every optional key. Encoding stays strict by
default otherwise: a hash key with no entry at all in the type
spec still croaks (GH #242).
eg/bench_large.pl:
old encode: 20.5--22.9/s decode: 16.2--16.5/s for 4.53
new encode: 21.1--22.5/s decode: 15.7--16.3/s for 4.80
4.53 2026-09-28 (rurban)
- Fix C90 violations with arm neon (GH #258 rjbs)
- Added a native arm64 test runner.
- updated to 4.520.0 (4.52)
4.52 2026-09-12 (rurban)
- OSX 10.9 fix for SIMD UTF-8 (Christian Carey)
- Change my maintainer email to reini.urban@gmail.com
4.51 2026-09-11 (rurban)
- Add faster SIMD UTF-8 validation (GH #213, Zhang Boyang)
- Fix tests for yath (GH #255, with H.Merijn Brand): the test files now
work with Test2::Harness instead of only Test::Harness, and a yath
run is added to `make xtest` when yath is installed.
- Skip one t/117_numbers.t test on Perls with 32-bit IVs (GH #254,
Jeremy Hansen).
4.50 2026-09-08 (rurban)
- Add $json->encode_to($fh, $data, [$type]) to stream encoded JSON directly
to a filehandle instead of building the whole result in memory
(GH #250, requested by yairlenga. designed 2016 in GH #58).
Internally flushes a bounded 8k chunk buffer as it fills, keeping
peak memory bounded for large data structures.
- Encoder performance improvements suggested in GH #237 (17dec):
* Large-integer encoding now uses a 100-digit lookup table instead of
snprintf, roughly 2x faster for integers outside the existing
branchless small-integer fast path (|value| > 59000).
* encode_str now bulk-copies runs of consecutive bytes that need no
escaping instead of a need()+store per byte, notably faster for
strings with few or no characters to escape.
Added eg/bench_large.pl with results.
- updated to 4.440.0 (4.44)
4.44 2026-09-02 (rurban)
- Fix canonical sort infinite loop (GH #252 amelchio): malformed UTF-8 keys
(e.g. Latin-1 byte strings mixed with Unicode) made utf16_cmp
treat the decoder's (STRLEN)-1 malformed sentinel as a length,
wrapping the buffer pointer. Now checked as 0 or > remaining length.
- updated to 4.430.0 (4.4

Fixed packages 1

ReleasePackageFixed in
SUSE · SLES 15 SP7 Linux Enterprise Module for Package Hub 15 SP7 perl-Cpanel-JSON-XS 4.800.0-150700.3.9.1

Vulnerabilities 18

  • Critical 9.1

    Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded arguments of a tagged value when its THAW method dies in decode_tag

    Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded arguments of a tagged value when its THAW method dies in decode_tag. With allow_tags, a tagged value's class name and argument array are decoded and passed to the class's THAW method. Both are re…

  • High 8.1

    Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl accept malformed UTF-8 in bare hash keys under allow_barekey in decode_hv

    Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl accept malformed UTF-8 in bare hash keys under allow_barekey in decode_hv. With utf8 and allow_barekey, which relaxed enables, a quoted key is validated as UTF-8 but a bare key's bytes are stored as a U…

  • High 8.1

    Cpanel::JSON::XS versions before 4.80 for Perl use the parent interpreter's scalars from a parser object cloned into a new ithread

    Cpanel::JSON::XS versions before 4.80 for Perl use the parent interpreter's scalars from a parser object cloned into a new ithread. A parser object holds its callbacks and its incremental parse buffer as raw scalar pointers. When a thread is created, these ar…

  • High 8.1

    Cpanel::JSON::XS versions from 3.0202 before 4.80 for Perl leak memory and retain overloaded objects when encoding values as strings in encode_stringify

    Cpanel::JSON::XS versions from 3.0202 before 4.80 for Perl leak memory and retain overloaded objects when encoding values as strings in encode_stringify. encode_stringify writes a value in its string form under allow_stringify, under convert_blessed for objec…

  • High 7.5

    Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded key of an object rejected for a duplicate key or a missing colon in decode_hv

    Cpanel::JSON::XS versions before 4.80 for Perl leak the decoded key of an object rejected for a duplicate key or a missing colon in decode_hv. A quoted key of 24 or more bytes, or one containing a non-ASCII byte or an escape sequence, is decoded into a new sc…

  • High 7.5

    Cpanel::JSON::XS versions before 4.80 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag

    Cpanel::JSON::XS versions before 4.80 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag. With allow_tags, "(" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unli…

  • High 7.5

    Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by encoding exponent notation as full decimal digits under allow_bignum

    Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by encoding exponent notation as full decimal digits under allow_bignum. With allow_bignum, a JSON number with a fraction or exponent decodes to a Math::BigFloat, which stores the exponent…

  • High 7.5

    Cpanel::JSON::XS versions from 4.28 before 4.80 for Perl leak the array collecting duplicate key values under dupkeys_as_arrayref in decode_hv

    Cpanel::JSON::XS versions from 4.28 before 4.80 for Perl leak the array collecting duplicate key values under dupkeys_as_arrayref in decode_hv. With dupkeys_as_arrayref, the values of a duplicate object key are collected into a new array. An extra reference i…

  • High 7.5

    Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by buffering incremental input past max_size in incr_parse

    Cpanel::JSON::XS versions before 4.80 for Perl allow memory exhaustion by buffering incremental input past max_size in incr_parse. The parser appends each chunk to its buffer. In scalar or list context, it compares max_size with how far it has progressed, not…

  • High 7.5

    Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv

    Cpanel::JSON::XS versions from 4.20 before 4.80 for Perl write out of bounds when a tied or shared hash grows during canonical encoding in encode_hv. With canonical, the keys of a tied or threads::shared hash are counted before a second pass collects them for…

  • High 7.5

    Cpanel::JSON::XS versions from 4.42 before 4.80 for Perl let input chunking change the decoded value of top-level numbers in incr_parse

    Cpanel::JSON::XS versions from 4.42 before 4.80 for Perl let input chunking change the decoded value of top-level numbers in incr_parse. allow_nonref is enabled by default and incr_parse inherits it. A top-level number, true, false or null has no closing deli…

  • High 7.5

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

    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, in…

  • High 7.5

    Cpanel::JSON::XS versions from 4.51 before 4.80 for Perl allow quadratic CPU use by revalidating the remaining buffer per value in incr_parse

    Cpanel::JSON::XS versions from 4.51 before 4.80 for Perl allow quadratic CPU use by revalidating the remaining buffer per value in incr_parse. At the first non-ASCII byte in a string, the decoder validates UTF-8 from there to the end of its input. incr_parse …

  • High 7.5

    Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws

    Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws. To skip a leading 3-byte UTF-8 BOM, decode_json() advances the input scalar's string pointer past the mark with SvPV_set(…

  • High 7.3

    Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled

    Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled. decode_hv() collapses duplicate object keys into an array reference under dupkeys_as_arrayref. The branch reached for a duplicat…

  • Medium 6.5

    Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under dupkeys_as_arrayref in decode_hv

    Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under dupkeys_as_arrayref in decode_hv. With allow_barekey, which relaxed enables, a bare key containing a non-ASCII byte is stored as UTF-8 b…

  • Medium 6.5

    Cpanel::JSON::XS versions before 4.80 for Perl use freed filter callbacks when a filter removes itself during decoding in decode_hv

    Cpanel::JSON::XS versions before 4.80 for Perl use freed filter callbacks when a filter removes itself during decoding in decode_hv. A decode copies the parser's filter_json_object and filter_json_single_key_object callbacks without taking references to them.…

  • Medium 5.6

    Cpanel::JSON::XS before version 4.40 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact

    Cpanel::JSON::XS before version 4.40 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact

References

  • report
    https://bugzilla.suse.com/1249331
  • report
    https://bugzilla.suse.com/1267546
  • report
    https://bugzilla.suse.com/1267547
  • report
    https://bugzilla.suse.com/1286166
  • report
    https://bugzilla.suse.com/1286167
  • report
    https://bugzilla.suse.com/1286168
  • report
    https://bugzilla.suse.com/1286169
  • report
    https://bugzilla.suse.com/1286170
  • report
    https://bugzilla.suse.com/1286173
  • report
    https://bugzilla.suse.com/1286174
  • report
    https://bugzilla.suse.com/1286175
  • report
    https://bugzilla.suse.com/1286176
  • report
    https://bugzilla.suse.com/1286177
  • report
    https://bugzilla.suse.com/1286179
  • report
    https://bugzilla.suse.com/1286180
  • report
    https://bugzilla.suse.com/1286181
  • report
    https://bugzilla.suse.com/1286182
  • report
    https://bugzilla.suse.com/1286183
  • web
    https://www.suse.com/security/cve/CVE-2025-40929
  • web
    https://www.suse.com/security/cve/CVE-2026-110672
  • web
    https://www.suse.com/security/cve/CVE-2026-110673
  • web
    https://www.suse.com/security/cve/CVE-2026-110674
  • web
    https://www.suse.com/security/cve/CVE-2026-110675
  • web
    https://www.suse.com/security/cve/CVE-2026-110676
  • web
    https://www.suse.com/security/cve/CVE-2026-110677
  • web
    https://www.suse.com/security/cve/CVE-2026-110678
  • web
    https://www.suse.com/security/cve/CVE-2026-110680
  • web
    https://www.suse.com/security/cve/CVE-2026-110681
  • web
    https://www.suse.com/security/cve/CVE-2026-110682
  • web
    https://www.suse.com/security/cve/CVE-2026-110684
  • web
    https://www.suse.com/security/cve/CVE-2026-110685
  • web
    https://www.suse.com/security/cve/CVE-2026-110686
  • web
    https://www.suse.com/security/cve/CVE-2026-110687
  • web
    https://www.suse.com/security/cve/CVE-2026-110688
  • web
    https://www.suse.com/security/cve/CVE-2026-9334
  • web
    https://www.suse.com/security/cve/CVE-2026-9516