JSON Threat Protection

Enterprise only
Related Documentation
Made by
Kong Inc.
Supported Gateway Topologies
hybrid db-less traditional
Supported Konnect Deployments
hybrid cloud-gateways serverless
Compatible Protocols
grpc grpcs http https
Priority
1009
Minimum Version
Kong Gateway - 3.8

3.15.0.9

Release date 2026/11/26

Bugfix

  • Fixed an issue where the plugin returned the generic "Bad request" message instead of "Invalid JSON" for a request body that is not valid JSON. If you rely on the previous Bad request message in tests or client code, update them accordingly before upgrading to this version.

  • Fixed an issue where a data plane older than 3.14 rejected the whole configuration pushed by a 3.14 or newer control plane when the plugin used the default allow_non_json_requests value.

3.14.0.19

Release date 2026/11/26

Bugfix

  • Fixed an issue where the plugin returned the generic "Bad request" message instead of "Invalid JSON" for a request body that is not valid JSON. If you rely on the previous Bad request message in tests or client code, update them accordingly before upgrading to this version.

  • Fixed an issue where a data plane older than 3.14 rejected the whole configuration pushed by a 3.14 or newer control plane when the plugin used the default allow_non_json_requests value.

3.14.0.0

Release date 2026/04/07

Feature

  • Added support for allow_non_json_requests configuration to allow non-JSON requests to bypass all checks.

3.10.0.0

Release date 2025/03/27

Feature

  • Added the schema field allow_duplicate_object_entry_name to allow or disallow duplicate object keys in JSON payloads. When set to false, the plugin will reject JSON payloads with duplicate object keys. The default value is true, which is same as the previous behavior.

Bugfix

  • This plugin now accurately supports proxying for non-POST/PUT/PATCH requests.

3.9.0.0

Release date 2024/12/12

Bugfix

  • Fixed an issue where the length counting of escape sequences, non-ASCII characters, and object entry names in JSON Strings was incorrect; now using UTF-8 character count instead of bytes.

  • Fixed an issue where certain default parameter values were incorrectly interpreted as 0 in some environments (e.g., ARM64-based):

    • max_container_depth
    • max_object_entry_count
    • max_object_entry_name_length
    • max_array_element_count
    • max_string_value_length

3.8.1.0

Release date 2024/11/04

Bugfix

  • Fixed an issue where the length counting of escape sequences, non-ASCII characters, and object entry names in JSON Strings was incorrect; now using UTF-8 character count instead of bytes.

  • Fixed an issue where certain default parameter values were incorrectly interpreted as 0 in some environments (e.g., ARM64-based):

    • max_container_depth
    • max_object_entry_count
    • max_object_entry_name_length
    • max_array_element_count
    • max_string_value_length

3.8.0.0

Release date 2024/09/11

Feature

  • Added JSON threat protection plugin. Validates JSON nesting depth, array elements, object entries, key length, and string length. Logs or terminates violating requests.

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!