GHSA-X9JP-4W8M-4F3C
Vulnerability from github – Published: 2022-06-10 19:51 – Updated: 2022-06-10 19:51
VLAI
Summary
Cross Site Scripting vulnerability in django-jsonform's admin form.
Details
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.
- Email the maintainer at
Bharat Chauhan <tell.bhch@gmail.com>.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "django-jsonform"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.10.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-79",
"CWE-80"
],
"github_reviewed": true,
"github_reviewed_at": "2022-06-10T19:51:18Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "### 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 \u003ctell.bhch@gmail.com\u003e`.\n",
"id": "GHSA-x9jp-4w8m-4f3c",
"modified": "2022-06-10T19:51:18Z",
"published": "2022-06-10T19:51:18Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/bhch/django-jsonform/security/advisories/GHSA-x9jp-4w8m-4f3c"
},
{
"type": "PACKAGE",
"url": "https://github.com/bhch/django-jsonform"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Cross Site Scripting vulnerability in django-jsonform\u0027s admin form."
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…