# GHSA-x9jp-4w8m-4f3c: Cross Site Scripting vulnerability in django-jsonform's admin form.

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-06-10T19:51:18.000Z
- Modified: 2024-12-07T05:41:09.009Z
- Weaknesses: CWE-79, CWE-80

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

(As written by GitHub Advisory Database.)

## Affected

- django-jsonform (PyPI): before 2.10.1

## References

- <https://github.com/bhch/django-jsonform/security/advisories/GHSA-x9jp-4w8m-4f3c> (web)
- <https://github.com/bhch/django-jsonform> (package)

## Sources

- GitHub Advisory Database: [GHSA-x9jp-4w8m-4f3c](https://github.com/advisories/GHSA-x9jp-4w8m-4f3c), CC-BY-4.0, modified 2024-12-07

---

Page: https://cve.day/GHSA-x9jp-4w8m-4f3c · Whole record: https://cve.day/GHSA-x9jp-4w8m-4f3c.json · Rebuilt by cve.day 2026-11-25T22:56:36.991Z
