# GHSA-X9JP-4W8M-4F3C: Description django-jsonform stores the raw JSON data of the db field in a hidden textarea on the admin page

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2022-06-10
- Modified: 2024-12-07

## Affected versions

- django-jsonform (PyPI): fixed in 2.10.1

## Description

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

## References

- https://github.com/bhch/django-jsonform/security/advisories/GHSA-x9jp-4w8m-4f3c
- https://github.com/bhch/django-jsonform

Page: https://cve.now/GHSA-X9JP-4W8M-4F3C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
