# CVE-2022-30241: Cross-site Scripting in jquery.json-viewer

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 0.71%, higher than 54% of CVEs (2026-12-02)
- Published: 2022-05-04T17:29:55.000Z
- Modified: 2026-06-17T04:43:19.983Z
- Also known as: GHSA-qp2q-6h9j-jg2r
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

The jquery.json-viewer library through 1.4.0 for Node.js does not properly escape characters such as < in a JSON object, as demonstrated by a SCRIPT element.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- jquery.json-viewer (npm): before 1.5.0
- jquery_json-viewer_project jquery_json-viewer: up to 1.4.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/abodelot/jquery.json-viewer/pull/26> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/jquery.json-viewer> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30241> (advisory)
- <https://github.com/abodelot/jquery.json-viewer> (package)
- <https://github.com/abodelot/jquery.json-viewer/releases/tag/v1.5.0> (web)

## Sources

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

---

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