CVE-2023-22460Protocol Go-ipld-prime
High 7.5 No auth needed
Follow: this CVE · Protocol · Protocol Go-ipld-prime We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Jan 4, 2023
- Updated
- Aug 27, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Go-ipld-prime.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/ipld/go-ipld-prime |
< 0.19.0 |
0.19.0 |
go get github.com/ipld/go-ipld-prime@v0.19.0 |
| Go | github.com/ipld/go-ipld-prime |
< 0.19.0 |
0.19.0 |
go get github.com/ipld/go-ipld-prime@v0.19.0 |
Per OSV / GitHub Advisories (GHSA-c653-6hhg-9x92, GO-2023-1269). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| protocol | go-ipld-prime | < 0.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- www.openwall.com