Skip to content

fix(deps): bump: bump com.cedarsoftware:json-io from 4.118.0 to 4.119.0 - #522

Merged
kvmw merged 1 commit into
mainfrom
dependabot/gradle/main/com.cedarsoftware-json-io-4.119.0
Dec 4, 2026
Merged

kvmw merged 1 commit into
mainfrom
dependabot/gradle/main/com.cedarsoftware-json-io-4.119.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps com.cedarsoftware:json-io from 4.118.0 to 4.119.0.

Release notes

Sourced from com.cedarsoftware:json-io's releases.

json-io 4.119.0

Maven Central:

  • com.cedarsoftware:json-io:4.119.0
  • com.cedarsoftware:json-io-spring-boot-starter:4.119.0
  • com.cedarsoftware:json-io-spring-ai-toon:4.119.0

It depends on java-util 4.119.0. The test suite passes on JDK 8, 17 and 25.

Upgrading from 4.118.0: read the three notes at the top of the changelog. They say who has to act: callers of a removed deprecated method, applications whose JSON names a GUI class, and applications that set a java-util reflectionutils.* security property. The table under them lists every result that can change.

Security

  • JsonTokenizer.getBigIntegerValue() no longer builds the number an exponent names (GHSA-8hw2-vgq3-jcx3, reported by Dickson Wu, SEAL & CertiK). With floatPointBigDecimal() or floatPointBoth(), the 10 characters 1e30000000 held the calling thread for 3.6 seconds, and 1e600000000 for five minutes. Affected: applications that read untrusted JSON with the streaming tokenizer (JsonIo.createTokenizer, 4.103.0 through 4.118.0) in one of those two modes and call getBigIntegerValue(). JsonIo.toJava(), toMaps() and TOON reads were not affected. A whole part of more than 1,000 digits made by an exponent is now a JsonParseException.
  • JSON that names a JDK class whose constructor acts on its own is refused (java-util 4.119.0's block list): every javax.swing and javax.imageio.stream class, every AWT and Swing component and menu, SplashScreen, DescriptorSupport, DataFlavor and KerberosPrincipal. JEditorPane(String url) fetched the URL the JSON named, with the default options. Reported privately.
  • A JSON number with 700 or more digits and a five-digit exponent is read as the number it writes; it was read as another, ordinary number.

Removed

  • 28 deprecated members, each with a replacement for several releases: the eight Accessor.*Getter interfaces, JsonObject.getLength(), JsonValue.getJavaType(), the nested JsonReader.MissingFieldHandler, eleven MetaUtils forwards to java-util and others. The changelog lists each with its replacement. java-util 4.119.0 removes 30 of its own.

Fixed

  • A JSON number that does not fit where it is read is refused, not cast. {"qty":2147483648} read into an int field gave -2147483648; it is now a JsonIoException naming the place and the range.
  • A JSON zero written with an exponent (0e30) reads as zero with floatPointBigDecimal().
  • getBigIntegerValue() on a Double token gives the same number on every JDK, and NaN and the infinities are a JsonParseException.

Changed

  • java-util's reflectionutils.* security properties no longer reach json-io. An application that set them got an object with a field named like password written as {}; it is now written and read in full. Use @IoIgnore or WriteOptionsBuilder.addExcludedFields() to keep a field out of JSON.

Faster

  • A read with floatPointBigDecimal() or integerTypeBigInteger() no longer converts each big number twice more.
Changelog

Sourced from com.cedarsoftware:json-io's changelog.

4.119.0 - 2026-11-27

Action may be needed if you call a deprecated method: 28 are removed from json-io, and java-util 4.119.0 removes 30. Each had a replacement for several releases. From json-io: the eight Accessor.*Getter interfaces (BooleanGetter through ShortGetter; unused since 4.114.0); EnumClassFactory.fromString(Class, String) (protected; Converter.convert()); JsonObject.getLength() (size()); the nested JsonReader.MissingFieldHandler (the top-level MissingFieldHandler); JsonValue.getJavaType() (getRawType()); JsonWriter.writeBasicString() and writeSingleQuotedString() (JsonGenerator); ReadOptionsBuilder.assignInstantiator() (addPermanentClassFactory()); the Writer forms of Writers.writeWithStringFormat() and writeNumericWithFieldFormat() (the JsonGenerator forms stay); and eleven MetaUtils methods, each of which already forwarded to java-util: findClosest(), getClassIfEnum(), loadResourceAsBytes(), loadResourceAsString() and setUseUnsafe() (ClassUtilities), length(), trimLength() and removeLeadingAndTrailingQuotes() (StringUtilities), safelyIgnoreException() (2 forms) and trySetAccessible() (ExceptionUtilities). Code that calls one stops compiling, with the replacement named here; a jar built against 4.118.0 fails with NoSuchMethodError / NoClassDefFoundError where it calls one. java-util's list is at the top of its changelog.

JSON that names JEditorPane, DescriptorSupport and a few other JDK classes is refused. json-io hands an object's values to a JDK class's public constructor, matched by type: an object holding one string runs the class's (String) constructor. javax.swing.JEditorPane(String url) fetches that URL, so such data made the reader send a request to any host, or read a local file, with the default options; javax.management.modelmbean.DescriptorSupport(String) built any class named in its text, past the block list. java-util 4.119.0 refuses every javax.swing and javax.imageio.stream class, every AWT or Swing component and menu (and subclass), SplashScreen, DescriptorSupport, DataFlavor and KerberosPrincipal; reading one is a JsonIoException caused by a SecurityException. That includes Swing's data types and a class of yours that implements a Swing interface. Point, Color, Rectangle, Dimension, Insets, Font and java.awt.geom.* are not affected. Reported privately.

If your application sets a reflectionutils.* security property, read this. java-util 4.119.0 removed the optional security checks of its ReflectionUtils; the six system properties that switched them on (reflectionutils.security.enabled, reflectionutils.sensitive.field.validation.enabled and four more, all off by default) are now ignored. With the field check on, json-io was handed no fields at all for a class with one field named like password or isPrivate: it wrote such an object as {}, with no error, and could not read one. It now writes and reads that object in full, the password field included. To keep a field out of JSON use @IoIgnore on the field, or WriteOptionsBuilder.addExcludedFields() and ReadOptionsBuilder.addNotImportedField(). If you never set those properties, nothing changes. The class names json-io refuses to load from JSON come from another list, in ClassUtilities, which is always on and is unchanged.

Upgrading from 4.118.0 -- what can change a result. The entries below have the details; java-util 4.119.0 has its own table: see java-util's changelog.

Area 4.118.0 4.119.0
JSON naming (by @type, or by a field's declared type) a class in javax.swing or javax.imageio.stream, an AWT or Swing component or menu, SplashScreen, DescriptorSupport, DataFlavor or KerberosPrincipal built through the constructor its values fit (JEditorPane(String url) fetched the URL) refused: JsonIoException caused by SecurityException
A call to one of the 28 removed deprecated json-io methods (the note above), or one of java-util's 30 ran does not compile; NoSuchMethodError / NoClassDefFoundError from a jar built against 4.118.0
A JSON number that does not fit the field, array element, list element or map value it is read into ({"qty":2147483648} into an int, 70000 into a short, 3.9e9 into an int, 1e300 into a long, 1e39 into a float, NaN into an int) cast: -2147483648, 4464, 2147483647, Long.MAX_VALUE, Infinity, 0 JsonIoException naming the place and the range
An object with a field named like password, secret or isPrivate, with -Dreflectionutils.security.enabled=true -Dreflectionutils.sensitive.field.validation.enabled=true written as {}; JsonIoException reading one written and read in full: the properties are ignored (java-util 4.119.0)
A JSON zero written with an exponent (0e30) read with floatPointBigDecimal() into a long, int or Date field JsonIoException "outside ..." 0
A JSON number with 700 or more digits and an exponent of 10240 or more (0. + 1,005 zeros + 12345e10240, which is 1.2345E+9234) an ordinary number that is not the one written: 1.2345E18 the number written: as 1.2345e9234 reads (with java-util 4.119.0)
JsonTokenizer.getBigIntegerValue() on a decimal read as a BigDecimal whose exponent names more than 1,000 digits (1e1000) the 1,001-digit number (minutes, for 1e600000000) JsonParseException
getBigIntegerValue() / getDecimalValue() on NaN or an infinity the JDK's NumberFormatException JsonParseException
getBigIntegerValue() on a Double token such as 1e23, on JDK 8 through 18 99999999999999990000000 100000000000000000000000, as on JDK 19 and later
  • BUILD: java-util 4.118.0 → 4.119.0, released the same day: json-io depends on the java-util of its own version number. From it json-io gets the block list that refuses the GUI and other JDK classes (the note above), a zero written with an exponent read as zero, a number with a five-digit exponent read as the number written, and ReflectionUtils without its optional security switches.

  • SECURITY: JsonTokenizer.getBigIntegerValue() no longer builds the number an exponent names (GHSA-8hw2-vgq3-jcx3, reported by Dickson Wu, SEAL & CertiK). On a decimal token held as a BigDecimal -- every decimal with floatPointBigDecimal(), and with floatPointBoth() those that no double reads back as -- it called BigDecimal.toBigInteger(), which multiplies by 10 to the power of the exponent, or divides by it to find that a fraction's whole part is 0. The work follows the exponent, not the length of the input: the 10 characters 1e30000000 held the calling thread for 3.6 seconds, 1e-30000000, whose answer is 0, for the same, and 1e600000000 for five minutes and a 237 MB number (JDK 25); forty such tokens fit in 401 bytes. Affected: an application that reads untrusted JSON with the streaming tokenizer (JsonIo.createTokenizer, public since 4.103.0) in one of those two modes and calls getBigIntegerValue() on a decimal token, in 4.103.0 through 4.118.0. Not affected, each measured on JDK 8, 17 and 25: the default mode (a decimal is a Double), the tree reads (toJava, toMaps, TOON) into any field type, JsonObject's typed getters, copyCurrentEvent(), the tokenizer's other accessors, and the writers.

    • Now the whole part is taken by the read's Converter, as a tree read's conversions are: 0 at once for a fraction, and a whole part that an exponent expands past ConverterOptions.getMaxPlainDigits() digits (1,000) is refused from its digit count with a JsonParseException ("Unable to convert 1E+1000 to a whole number: it would take 1001 digits, more than 1000"). What changes for a value that was never slow: a decimal such as 1e1000 or 1e2000 in those two modes gave its 1,001 or 2,001 digit BigInteger and is now refused. 1e999, a decimal written out in digits of its own at any length (123...789.5), and every other whole part are as before, and getDecimalValue(), getNumberValue() and getText() still return a refused token as it was written. The fix follows the reporter's patch.
    • Tests. TokenizerBigIntegerValueTest (15), every case through createTokenizer(String) and createTokenizer(InputStream): six huge exponents (to 1e999999999, and 1e1000) refused in both modes with the token still readable as a decimal; the reported 401-byte array refused at its first number; fractions (1e-600000000, 123456789e-600000000) giving 0; the values within the limit (1e999, -2.9, 1,500 written digits); integer tokens; and a tree read and a copied token keeping the decimal. Each test has a 30 second limit on a thread of its own. 8 of the 15 fail on 4.118.0, two of them by that limit.
  • BUG FIX: A JSON number that does not fit where it is read is refused, not cast. json-io's parser makes a Long of a whole number and a Double of a decimal, and where one was read into a narrower field it took a short cut: a Java cast. A cast wraps a whole number and pins a decimal to the nearest end, silently. {"qty":2147483648} read into an int field gave -2147483648; -2147483649 gave 2147483647; 70000 into a short gave 4464; 128 into a byte gave -128; 3.9e9 into an int gave 2147483647; 1e300 into a long gave Long.MAX_VALUE; 1e39 into a float gave Infinity; NaN into an int gave 0. The read succeeded with a number the JSON does not hold. The same held for an element of an int[], short[], byte[], long[] or float[], of an Integer[], of a List<Integer>, and for a value of a Map<String, Short>. java-util's Converter has refused every one of these since 4.113.0, and json-io reached it for a BigInteger or a String ({"qty":9223372036854775808} was refused); only the short cut for Long and Double went round it. The short cut now takes what fits and leaves the rest to the Converter: JsonIoException "Order.qty: Unable to convert 2147483648 to int: it is outside -2147483648 to 2147483647 (at $.qty)", as Jackson refuses it ("Numeric value (2147483648) out of range of int").

    • Unchanged: a number that fits; a fraction dropped toward zero (1.9 into an int is 1, 2147483647.9 is 2147483647), as the Converter drops it; a whole number into a float or double (rounded to the nearest, never out of range); NaN and the infinities in a float or double. A number into a char was already refused outside 0 to 65535.
    • Speed. The check is a compare on a value already in hand. 5,500 numbers read into the typed fields of 500 objects, ns per number, three alternating fresh-JVM runs each: JDK 25 44.7 → 44.8, JDK 17 50.2 → 48.4, JDK 8 43.9 → 43.3; a 4,096-element int[]: 21.1 → 21.1 on JDK 25. On a par.
    • Tests. NumberTooLargeForItsFieldTest (4): whole numbers past an int, short and byte, primitive and boxed; decimals past an int, long and float, and NaN; the same in five kinds of array, a list and a map; and what fits, at both ends of every range, with fractions, NaN and the infinities. Three of the four fail on 4.118.0. InjectorDifferentialTest, which compares the Injector with reflection on random values, pinned the cast for a long or double that does not fit; its oracle now says such a value is not injected, and it draws values around the ends of each range as well.
  • CHANGE: java-util's reflectionutils.* security properties no longer reach json-io (with java-util 4.119.0). The note at the top of this section says what to do. json-io asks java-util's ReflectionUtils for a class's fields, and with reflectionutils.security.enabled and reflectionutils.sensitive.field.validation.enabled set, ReflectionUtils threw for the whole class when one field's name contained a listed word (password, secret, credential, private, ...). json-io then had no fields: {"user":"ada","password":"s3cret"} was written as {}, a class with a boolean isPrivate likewise, and reading either threw. java-util 4.119.0 removed those checks, for reasons its changelog gives, so the properties are ignored and the object is whole again. Nothing in json-io's own code changed, and nothing changes for an application that did not set them.

    • Tests. ReflectionUtilsSwitchesIgnoredTest (2), with the properties set: objects with password and isPrivate fields written and read in full; and a field kept out by @IoIgnore, by addExcludedFields() and by addNotImportedField().
  • BUG FIX: A JSON zero written with an exponent reads as zero with floatPointBigDecimal() (with java-util 4.119.0). Such a token is the BigDecimal 0E+30, and java-util's Converter counted its whole part as 31 digits, so {"count":0e30} read into a long field failed with "Unable to convert 0E+30 to long: it is outside -9223372036854775808 to 9223372036854775807"; an int, Long or Date field failed alike, a JsonObject's get("count", Long.class) too, and 0E+2000 into a BigInteger field (or through the tokenizer's getBigIntegerValue()) was refused as a whole number of 2,001 digits. java-util 4.119.0 counts no digits for zero. The default mode and floatPointBoth() read such a token as the double 0.0 and were always right; a zero with decimal places (0.000, 0e-8) was right in every mode.

    • Tests. ZeroWithExponentTest (2): seven spellings of zero in the three number modes, read into long, int, Long, BigInteger and Date fields, through a Map mode tree's typed getters, and through the tokenizer's four number accessors. Both fail with java-util 4.118.0.
  • BUG FIX: getBigIntegerValue() on a Double token gives the same number on every JDK, and NaN and the infinities are a JsonParseException. Found beside the fix above. The whole part came from Double.toString(), which before JDK 19 does not always write the shortest decimal: 1e23 was 99999999999999990000000 on JDK 8 through 18 and 100000000000000000000000 on JDK 19 and later. It is now the whole part of the decimal the double prints, through the same Converter: the JDK 19+ answer everywhere, so nothing changes on JDK 19 and later. And getBigIntegerValue() and getDecimalValue() on NaN, Infinity or -Infinity (allowNanAndInfinity), or on a Double token past the double range such as 1e400 (a double read holds it as Infinity), threw the JDK's NumberFormatException, with no message on JDK 8. They now throw JsonParseException ("Numeric value NaN out of range of BigInteger"), with the tokenizer's snippet of the input, as getLongValue() and getIntValue() already did. Both accessors' Javadoc now say what they return and throw.

    • Compared with 4.118.0. 72 number tokens in all 9 number modes, 13 accessors each (8,424 results, error messages included), on JDK 25 and JDK 8: the only differences are the three above -- the refusals past 1,000 digits, NaN and the infinities, and 1e23 on JDK 8.
  • PERFORMANCE: A read with floatPointBigDecimal() or integerTypeBigInteger() no longer converts each big number twice more. For every BigDecimal and BigInteger token the tokenizer also computed longValue() and doubleValue() and kept them. No accessor reads them for such a token -- each goes to the big value itself -- and a tree read asks only for the number. For a BigDecimal with a fraction, longValue() alone is a division and two objects. They are no longer computed. 2,000 mixed numbers read with toJava() into an Object[], ns per number, median of 4 alternating fresh-JVM runs: floatPointBigDecimal() JDK 25 75 → 57, JDK 17 118 → 60, JDK 8 118 → 52; integerTypeBigInteger() JDK 25 55 → 49, JDK 17 55 → 50, JDK 8 69 → 51. The default modes (Double, Long) never did this and are unchanged.

    • Same behavior, shown. The 8,424 accessor results above are identical with and without the change, on JDK 25 and JDK 8.
  • SECURITY / BUG FIX: A JSON number with a long run of digits and a five-digit exponent is read as the number it writes (with java-util 4.119.0). java-util's fast number parser stopped reading an exponent at 1024 and then added it to the position of the decimal point: 0. + 1,005 zeros + 12345e10240, which is 1.2345E+9234, was read as 1.2345E18 with default options and with floatPointBoth(), and 12345 + 1,019 zeros + e-10240 as 0.12345. The shortest such text is 728 characters. A consumer that validates the same text another way saw a different number than the one json-io delivered. The fix is in java-util; nothing in json-io changed.

    • Test. LongNumberWithAHugeExponentTest (3): each padded number reads as the same number written without the padding, with default options, floatPointBoth() and floatPointBigDecimal(), and through the Converter.
  • TESTS: An enum that declares fields of its own named hash or ordinal writes and reads as in 4.118.0. java-util 4.119.0 lists such fields again in ReflectionUtils.getDeclaredFields(); json-io's own EnumFieldFilter still leaves both names out of every enum, so neither the JSON written nor what is read changes. EnumWithFieldsNamedHashOrOrdinalTest (2) holds that, with the text and values the released 4.118.0 jars produce.

  • CLEANUP: ToonReader.trimSpaces(String), a private method that nothing called, is removed. It was written during 4.114.0's TOON work and its last use was rewritten the same day to trim a range of the line buffer in place (trimSpacesRangeBuf), so no release ever called it. Nothing changes for a caller. A scan of the main sources of all three modules finds no other private method without a caller, apart from ResolverInstrumentation.linkSmokeReferences(), which is unused by design and marked so.

  • SECURITY: JDK classes whose constructors fetch a URL or build a named class are refused (java-util 4.119.0's block list; the note at the top). GuiComponentTypeRefusedTest (7): JEditorPane, JTextPane, DescriptorSupport and DataFlavor named by @type, a JEditorPane inside a map, and a field declared as JEditorPane with no @type, are refused with a SecurityException as the cause; none of the inputs carries a value, so the test cannot fetch or build anything beyond a no-argument constructor even on a build without the block. Point, Rectangle and Dimension still round-trip. On 4.118.0 each of the refused inputs was built.

  • CLEANUP: 28 deprecated members are removed (the note at the top lists them with their replacements). Each had been deprecated, with a replacement named, for several releases. Deprecated APIs still in wide use stay for now (JsonIo.toObjects() (3), JsonReader with ClassFactory and JsonClassReader, JsonWriter.JsonClassWriter, JsonValue.setJavaType(), ReadOptionsBuilder.returnAsNativeJsonObjects(), MetaUtils.isLogicalPrimitive() / isPrimitive() / newInstance(), and the Writer forms of JsonClassWriter.write() / writePrimitiveForm() that custom writers implement). No library code called a removed member. docs/json-io-5.0.md no longer lists them as 5.0 removals.

    • Tests. JsonObjectMethodsTest.testGetLengthDelegatesToSize is removed, and PermanentSettingsReachNullOptionsTest no longer lists assignInstantiator. Suites: json-io 5,952 (7 skipped), Spring Boot starter 166, Spring AI TOON 28, against java-util 4.119.0 with its own removals and its new blocks.
Commits
  • 69a27f0 Release: json-io 4.119.0 dated 2026-11-27 in the changelog
  • f6c80b6 Security, cleanup: 28 deprecated APIs removed; JSON naming a blocked JDK gadg...
  • 2b8192a Cleanup: ToonReader.trimSpaces(), a private method that nothing called, is re...
  • ddd3918 Test: java-util's reflectionutils.* security properties no longer empty an ob...
  • 3173149 Test: a long number with a huge exponent reads as written; an enum with hash ...
  • db8c20a Docs: the 4.119.0 changelog tells callers of java-util's EncryptionUtilities....
  • e2057ff Bug fix: a JSON number that does not fit where it is read is refused, not cast
  • abbee17 Performance: a read with floatPointBigDecimal() or integerTypeBigInteger() no...
  • 6499a43 Test: a JSON zero written with an exponent reads as zero with floatPointBigDe...
  • 7a15d8a Security: JsonTokenizer.getBigIntegerValue() no longer builds the number an e...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [com.cedarsoftware:json-io](https://github.com/jdereg/json-io) from 4.118.0 to 4.119.0.
- [Release notes](https://github.com/jdereg/json-io/releases)
- [Changelog](https://github.com/jdereg/json-io/blob/master/changelog.md)
- [Commits](jdereg/json-io@4.118.0...4.119.0)

---
updated-dependencies:
- dependency-name: com.cedarsoftware:json-io
  dependency-version: 4.119.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Nov 30, 2026
@kvmw
kvmw merged commit ab94832 into main Dec 4, 2026
5 checks passed
@kvmw
kvmw deleted the dependabot/gradle/main/com.cedarsoftware-json-io-4.119.0 branch December 4, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant