go-ipld-prime json codec may panic if asked to encode bytes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
go-ipld-prime is an implementation of the InterPlanetary Linked Data (IPLD) spec interfaces, a batteries-included codec implementations of IPLD for CBOR and JSON, and tooling for basic operations on IPLD objects. Encoding data which contains a Bytes kind Node will pass a Bytes token to the JSON encoder which will panic as it doesn't expect to receive Bytes tokens. Such an encode should be treated as an error, as plain JSON should not be able to encode Bytes. This only impacts uses of the `json` codec. `dag-json` is not impacted. Use of `json` as a decoder is not impacted. This issue is fixed in v0.19.0. As a workaround, one may prefer the `dag-json` codec, which has the ability to encode bytes.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ipld | go-ipld-prime | before 0.19.0 | 0.19.0 | Patch available | CNA |
| — | github.com/ipld/go-ipld-prime (Go) | before 0.19.0 | 0.19.0 | Patch available | GHSA-c653-6hhg-9x92 |
- go-ipld-prime Vendoripld Affected before 0.19.0 Fixed in 0.19.0 Patch available CNA
- github.com/ipld/go-ipld-prime (Go) Vendor— Affected before 0.19.0 Fixed in 0.19.0 Patch available GHSA-c653-6hhg-9x92
Remediation
- Fix · CNA go-ipld-prime (ipld) Fixed in 0.19.0
- Fix · GHSA-c653-6hhg-9x92 github.com/ipld/go-ipld-prime (Go) Fixed in 0.19.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-22460
- 2026-10-03 Alias added: GHSA-c653-6hhg-9x92
References
Advisory 3
More ipld vulnerabilities
- TI-2026-30634 go-ipld-prime: DAG-CBOR and DAG-JSON decoders unbounded recursion depth CVSS 3.1MEDIUM 6.2
Sources
- CVE-2023-22460 · CVE Program
- CVE-2023-22460 · NVD
- FIRST EPSS
- GHSA-c653-6hhg-9x92 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences