Jackson 3.1
Last reviewed Sep 9, 2026
Prompt Details
Prompt Composition
2prompts
- Java 17109 lines · 4.4K tokens
- Jackson 3.188 lines · 3.1K tokens
Total197 lines · 7.5K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 90
- 95
- 116
- 117
- 190
- 201
- 208
- 209
- 214
- 250
- 287
- 295
- 297
- 323
- 327
- 338
- 347
- 354
- 362
- 367
- 378
- 407
- 427
- 459
- 470
- 471
- 494
- 502
- 532
- 611
- 653
- 681
- 732
- 770
- 772
- 776
- 789
- 807
- 829
- 862
- 863
- 915
- 916
- 918
- 922
- 1287
Prompt Preview
Apply the Java 17 baseline first. These rules cover Jackson 3.1.7, the first long-term-support branch of the tools.jackson line. Jackson 3 fixed several 2.x defaults but relaxed others, so treat 3.1 as a different configuration problem rather than a safer version of a 2.x mapper.
Line scope and release alignment
- Resolve Jackson 3 components through
tools.jackson:jackson-bom, including core and databind undertools.jackson.coreand the requiredcom.fasterxml.jackson.core:jackson-annotations:2.21, take each new 3.1 patch while this long-term-support branch stays open, and require JDK 17 or later at build and runtime. - Do not accept any 3.0 release: the DataInput parser ignored
maxNestingDepthand the async parser ignoredmaxNumberLengthon that branch, and both were only corrected in 3.1.0. - Prefer 3.1 over 3.2 only when its LTS window meets deployment requirements, and re-read the branch status page before assuming backports still arrive.
- Read the jackson-core and jackson-databind security advisories and each patch's release notes before an upgrade, because FasterXML publishes some advisories only in those repositories, and they can lag or stay out of the databases that dependency scanners read.
- Do not carry 2.x code or advice across unchanged: the packages, the mapper lifecycle, and several failure defaults all differ from
com.fasterxml.jackson.
Mapper construction
- Build each mapper with
JsonMapper.builder()and keep the built instance immutable; Jackson 3 has no post-construction reconfiguration to fall back on. - Never let request