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

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2022-12-26T07:09:37.972Z
- Modified: 2026-06-17T05:21:42.653Z
- Also known as: GHSA-6xrf-q977-5vgc
- Weaknesses: CWE-1321
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- json-pointer: 0.6.0; 0.6.1
- json-pointer (npm): before 0.6.2
- json-pointer_project json-pointer: before 2022-2-17

## Every score

- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://vuldb.com/?id.216794> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.216794> (permissions-required, signature, third-party-advisory, web)
- <https://github.com/manuelstofer/json-pointer/pull/36> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/manuelstofer/json-pointer/commit/859c9984b6c407fc2d5a0a7e47c7274daa681941> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4742> (advisory)
- <https://github.com/manuelstofer/json-pointer> (package)

## Sources

- CVE List: [CVE-2022-4742](https://www.cve.org/CVERecord?id=CVE-2022-4742), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6xrf-q977-5vgc](https://github.com/advisories/GHSA-6xrf-q977-5vgc), CC-BY-4.0, modified 2024-04-04
- NVD: [CVE-2022-4742](https://nvd.nist.gov/vuln/detail/CVE-2022-4742), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4742 · Whole record: https://cve.day/CVE-2022-4742.json · Rebuilt by cve.day 2026-11-25T22:58:17.878Z
