# hjson stack exhaustion vulnerability

Advisory record · `GHSA-5wfc-hjrc-gq87`

- **Identifiers:** `GHSA-5wfc-hjrc-gq87` · `CVE-2023-34620` · `GO-2026-5157` · `PKSA-fmxt-7v2r-bbsn`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-674](https://cwe.mitre.org/data/definitions/674.html) · [CWE-787](https://cwe.mitre.org/data/definitions/787.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md) · [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 14 Jun 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Jun 2023, 15:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.hjson:hjson` (Maven): affected `<3.0.1`; fixed in `3.0.1`
- `laktak/hjson` (Packagist): affected `<2.3.0`; fixed in `2.3.0`
- `github.com/hjson/hjson-go/v4` (Go): affected `<4.5.0`; fixed in `4.5.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The hjson library for Java (Maven org.hjson:hjson before 3.0.1), the PHP package laktak/hjson before 2.3.0, and the Go module github.com/hjson/hjson-go/v4 before 4.5.0 are affected. An attacker who can supply crafted input containing deeply nested structures can cause a denial of service through stack exhaustion, and the source mentions other unspecified impacts. Upgrade org.hjson:hjson to 3.0.1, laktak/hjson to 2.3.0, or github.com/hjson/hjson-go/v4 to 4.5.0 or later.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0078, the 56th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:04 UTC: First seen by agentprime
- 31 Oct 2026, 14:04 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-5wfc-hjrc-gq87)

## Sources

- [GitHub Advisory Database: GHSA-5wfc-hjrc-gq87](https://github.com/advisories/GHSA-5wfc-hjrc-gq87)
- [OSV: GHSA-5wfc-hjrc-gq87](https://osv.dev/vulnerability/GHSA-5wfc-hjrc-gq87)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-34620>
- <https://github.com/hjson/hjson-java/issues/24>
- <https://github.com/hjson/hjson-cpp/pull/54>
- <https://github.com/hjson/hjson-go/pull/67>
- <https://github.com/hjson/hjson-php/pull/45>
- <https://github.com/hjson/hjson-go/commit/326599cebc6ef759892f473bf1439b98466a99fa>
- <https://github.com/hjson/hjson-php/commit/2d1b8b4b158a8d841f3a228f267c7cd84fe5a4fa>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-5wfc-hjrc-gq87>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-5wfc-hjrc-gq87/>. Everything for agents: <https://agentprime.io/llms.txt>.
