public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Cpanel-JSON-XS] epel8: Update to 4.80
Date: Thu, 15 Oct 2026 13:45:58 GMT [thread overview]
Message-ID: <179207195858.1.7482717744491245596.rpms-perl-Cpanel-JSON-XS-1cafca912d15@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Cpanel-JSON-XS
Branch : epel8
Commit : 1cafca912d1556ac412f8d7323e21105c5774231
Author : Paul Howarth <paul@city-fan.org>
Date : 2026-10-15T14:45:31+01:00
Stats : +68/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Cpanel-JSON-XS/c/1cafca912d1556ac412f8d7323e21105c5774231?branch=epel8
Log:
Update to 4.80
- New upstream release 4.80
- Security fixes:
- CVE-2026-110672 decode: free the hash key on "Duplicate keys not allowed"
and on a missing ':' (leak)
- CVE-2026-110673 decode: charge allow_tags "(" nesting against max_depth
(stack overflow)
- CVE-2026-110674 decode: look bare keys up as UTF-8, so the duplicate
check no longer misses or crashes on non-ASCII keys
- CVE-2026-110675 decode: validate bare hash keys as UTF-8 like quoted keys
(malformed keys)
- CVE-2026-110676 encode: compact allow_bignum Math::BigFloat values with
huge exponents (30MB from 12 bytes)
- CVE-2026-110677 decode: fix the dupkeys_as_arrayref reference counts
(leaked every array)
- CVE-2026-110678 incr_parse: apply max_size to the buffered text in every
context
- CVE-2026-110680 encode: bound the canonical key snapshot for growing tied
or shared hashes (overflow)
- CVE-2026-110681 new: clone the callbacks and buffer SVs on ithread clone
instead of sharing the parent's pointers
- CVE-2026-110682 incr_parse: reject a top-level number, true, false or
null unless allow_nonref was set explicitly, as chunking changes their
value; strings, arrays and objects are unchanged
- CVE-2026-110684 encode: release the temporary references when
stringifying overloaded objects (leak)
- CVE-2026-110685 decode_tag: free the tag and its arguments when THAW dies
(leak)
- CVE-2026-110686 decode: keep the filter callbacks alive while they run
(use-after-free when a filter removes itself)
- CVE-2026-110687 canonical: sort byte-string keys as Latin-1
- CVE-2026-110688 incr_parse: validate UTF-8 only up to the end of the
decoded text (quadratic CPU)
- Add version markers to all module files (GH#260)
- Use utf8n_to_uvchr on Perl 5.32 and later to avoid the deprecated
utf8n_to_uvuni API (GH#260)
- 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
---
diff --git a/perl-Cpanel-JSON-XS.spec b/perl-Cpanel-JSON-XS.spec
index 389b790..45f4e4e 100644
--- a/perl-Cpanel-JSON-XS.spec
+++ b/perl-Cpanel-JSON-XS.spec
@@ -7,7 +7,7 @@
Name: perl-Cpanel-JSON-XS
Summary: JSON::XS for Cpanel, fast and correct serializing
-Version: 4.53
+Version: 4.80
Release: 1%{?dist}
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Cpanel-JSON-XS
@@ -165,6 +165,72 @@ make test
%{_mandir}/man3/Cpanel::JSON::XS::Type.3*
%changelog
+* Thu Oct 15 2026 Paul Howarth <paul@city-fan.org> - 4.80-1
+- Update to 4.80
+ - Security fixes:
+ - CVE-2026-110672 decode: free the hash key on "Duplicate keys not allowed"
+ and on a missing ':' (leak)
+ - CVE-2026-110673 decode: charge allow_tags "(" nesting against max_depth
+ (stack overflow)
+ - CVE-2026-110674 decode: look bare keys up as UTF-8, so the duplicate
+ check no longer misses or crashes on non-ASCII keys
+ - CVE-2026-110675 decode: validate bare hash keys as UTF-8 like quoted keys
+ (malformed keys)
+ - CVE-2026-110676 encode: compact allow_bignum Math::BigFloat values with
+ huge exponents (30MB from 12 bytes)
+ - CVE-2026-110677 decode: fix the dupkeys_as_arrayref reference counts
+ (leaked every array)
+ - CVE-2026-110678 incr_parse: apply max_size to the buffered text in every
+ context
+ - CVE-2026-110680 encode: bound the canonical key snapshot for growing tied
+ or shared hashes (overflow)
+ - CVE-2026-110681 new: clone the callbacks and buffer SVs on ithread clone
+ instead of sharing the parent's pointers
+ - CVE-2026-110682 incr_parse: reject a top-level number, true, false or
+ null unless allow_nonref was set explicitly, as chunking changes their
+ value; strings, arrays and objects are unchanged
+ - CVE-2026-110684 encode: release the temporary references when
+ stringifying overloaded objects (leak)
+ - CVE-2026-110685 decode_tag: free the tag and its arguments when THAW dies
+ (leak)
+ - CVE-2026-110686 decode: keep the filter callbacks alive while they run
+ (use-after-free when a filter removes itself)
+ - CVE-2026-110687 canonical: sort byte-string keys as Latin-1
+ - CVE-2026-110688 incr_parse: validate UTF-8 only up to the end of the
+ decoded text (quadratic CPU)
+ - Add version markers to all module files (GH#260)
+ - Use utf8n_to_uvchr on Perl 5.32 and later to avoid the deprecated
+ utf8n_to_uvuni API (GH#260)
+ - 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
+
* Mon Sep 28 2026 Paul Howarth <paul@city-fan.org> - 4.53-1
- Update to 4.53
- Fix C90 violations with arm neon (GH#258)
diff --git a/sources b/sources
index ad7e00a..37b449e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Cpanel-JSON-XS-4.53.tar.gz) = 6b923d9316105b75b5125bbea48f123982971e123d380caa33104f12f7d22482e3fa6824f5bb70820b31a73b131d22c94711d2ceac064f9873f7b40059bbc76e
+SHA512 (Cpanel-JSON-XS-4.80.tar.gz) = 251f0c557f830ef8c08012b61d4fa403992e108a5e7b46fb3c44b05811f6b63282a71faff60c0b7e3a1194399b084e08797019e880f67bf69aa1ba19776c6f30
reply other threads:[~2026-10-15 13:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179207195858.1.7482717744491245596.rpms-perl-Cpanel-JSON-XS-1cafca912d15@fedoraproject.org \
--to=paul@city-fan.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox