What’s New in fastjson 1.2.68? Security Enhancements, GeoJSON Support, and Bug Fixes

fastjson 1.2.68 introduces a safeMode configuration that disables autoType, adds an autoType blacklist, supports GeoJSON, and fixes several bugs including JSONObject conversion issues, jsonpath .max/.min handling, and Map.Entry generics, while providing detailed release notes for developers.

Programmer DD
Programmer DD
Programmer DD
What’s New in fastjson 1.2.68? Security Enhancements, GeoJSON Support, and Bug Fixes

fastjson 1.2.68 has been released as a bug‑fix and security‑hardening version, adding an autoType blacklist. Users already on 1.2.67 or any sec09 version who have not explicitly enabled autoType do not need to upgrade solely for security.

The release introduces a safeMode configuration; when enabled, autoType is disabled regardless of whitelist or blacklist settings.

It also adds native support for GeoJSON . Documentation: https://github.com/alibaba/fastjson/wiki/geojson_cn

Key Issues Fixed and Features Added

Built‑in support for GeoJSON (https://github.com/alibaba/fastjson/wiki/geojson_cn)

Fixed incorrect results in JSONObject.toJavaObject under certain scenarios introduced in 1.2.67.

Added AutTypeCheckHandler to ParserConfig for custom security checks.

Resolved jsonpath bugs for .max and .min support (#3066).

Corrected inconsistent behavior of JSONObject.containsKey with Number values compared to getObject (#3093).

Improved generic support for Map.Entry.

Introduced an autoType blacklist.

Provided the safeMode configuration (https://github.com/alibaba/fastjson/wiki/fastjson_safemode).

For full release details, see: https://github.com/alibaba/fastjson/releases/tag/1.2.68

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaJSONSecurityfastjsonbug fixGeoJSON
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.