logo

GHSA-x9jp-4w8m-4f3c django-jsonform

Package

Manager: pip
Name: django-jsonform
Vulnerable Version: >=0 <2.10.1

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N/E:H/RL:U/RC:R

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Cross Site Scripting vulnerability in django-jsonform's admin form. ### Description django-jsonform stores the raw JSON data of the db field in a hidden textarea on the admin page. However, that data was kept in the textarea after unescaping it using the `safe` template filter. This opens up possibilities for XSS attacks. This only affects the admin pages where the django-jsonform is rendered. ### Mitigation Upgrade to django-jsonform version 2.10.1 or later. ### For more information If you have any questions or comments about this advisory: * [Open an issue](https://github.com/bhch/django-jsonform/issues). * Email the maintainer at `Bharat Chauhan <tell.bhch@gmail.com>`.

Metadata

Created: 2022-06-10T19:51:18Z
Modified: 2022-06-10T19:51:18Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-x9jp-4w8m-4f3c/GHSA-x9jp-4w8m-4f3c.json
CWE IDs: ["CWE-79", "CWE-80"]
Alternative ID: N/A
Finding: F425
Auto approve: 1