{"id":"GHSA-x9jp-4w8m-4f3c","aliases":["GHSA-x9jp-4w8m-4f3c"],"related":[],"kind":"vulnerability","state":"published","title":"Cross Site Scripting vulnerability in django-jsonform's admin form.","summary":"### Description\n\ndjango-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.\n\nThis only affects the admin pages where the django-jsonform is rendered.\n\n### Mitigation\n\nUpgrade to django-jsonform version 2.10.1 or later.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* [Open an issue](https://github.com/bhch/django-jsonform/issues).\n* Email the maintainer at `Bharat Chauhan <tell.bhch@gmail.com>`.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Description\n\ndjango-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.\n\nThis only affects the admin pages where the django-jsonform is rendered.\n\n### Mitigation\n\nUpgrade to django-jsonform version 2.10.1 or later.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* [Open an issue](https://github.com/bhch/django-jsonform/issues).\n* Email the maintainer at `Bharat Chauhan <tell.bhch@gmail.com>`.","format":"markdown","source":"ghsa"}],"published":"2022-06-10T19:51:18.000Z","modified":"2024-12-07T05:41:09.009Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.1"}],"ecosystem":"PyPI","package":"django-jsonform","purl":"pkg:pypi/django-jsonform","source":"ghsa"}],"references":[{"url":"https://github.com/bhch/django-jsonform/security/advisories/GHSA-x9jp-4w8m-4f3c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bhch/django-jsonform","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x9jp-4w8m-4f3c","url":"https://github.com/advisories/GHSA-x9jp-4w8m-4f3c","licence":"CC-BY-4.0","modified":"2024-12-07T05:41:09.009Z"}],"updatedAt":"2026-11-25T22:56:36.991Z"}