Skip to content

[SPARK-60799][BUILD] Upgrade Jackson to 2.22.4 - #60004

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-60799
Closed

dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-60799

Conversation

@dongjoon-hyun

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to upgrade FasterXML Jackson to 2.22.4.

Why are the changes needed?

Jackson 2.22.4 is the latest patch release on the 2.22 line.

  • https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.22.4 (2026-10-17)
    • Streaming
      • #1683 ReaderBasedJsonParser accepts lone surrogates in \uXXXX escapes in field names
      • #1744 UTF8DataInputJsonParser fails on JSON-escaped surrogate pairs in property names
      • #1750 ALLOW_UNESCAPED_CONTROL_CHARS is ignored for single-quoted string values in UTF-8 byte parsers
      • #1742, #1746, #1756 Non-blocking parser fixes for escaped surrogate pairs, leading decimal point numbers, and multi-byte UTF-8 characters after a backslash escape
      • #1730 FilteringGeneratorDelegate handles embedded objects, typed arrays, and raw/binary values consistently
    • Databind
      • CVE-2026-110879 #6287 Validate type parameters and array element types of type ids
      • #6206 Report a cycle through a @JsonValue accessor as a DatabindException
      • #6227 BeanDescription.findProperties() is not thread-safe on a shared, cached instance
      • #6249 Avoid an NPE when the parser reports VALUE_STRING with null text
    • CBOR
      • CVE-2026-106554 #821 Grow the CBORParser.TagList backing array geometrically

jackson-annotations stays at 2.22 as referenced by jackson-bom 2.22.4.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Sonnet 5.5

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this PR when you have some time, @sarutak ?

@sarutak sarutak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I verified the following:

  • The version is updated consistently in pom.xml, SparkBuild.scala and the deps manifest, and jackson-annotations correctly stays at 2.22 as managed by jackson-bom 2.22.4.
  • The listed fixes and CVE ids match the upstream release notes.
  • I ran a small parser test against the 2.22.3 and 2.22.4 jars for the two streaming fixes that touch Spark's JSON read paths. With jackson-core #1683, ReaderBasedJsonParser (used e.g. by from_json) now rejects an escaped lone surrogate in a field name such as {"\uD835":1}, as UTF8StreamJsonParser (used for text files) already did. With jackson-core #1750, UTF8StreamJsonParser now accepts a raw control character in a single-quoted value when allowUnquotedControlChars is enabled, as ReaderBasedJsonParser already did. Both only affect malformed or edge-case input and make the two parsers agree, so this looks fine to me.

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you so much, @sarutak !

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants