{"answers":{"affected":"2 open source packages ship an affected version, including django-jsonform.","exploited":"There is no known exploitation of GHSA-x9jp-4w8m-4f3c in the wild and no public exploit code.","fix":"Upgrade django-jsonform to 2.10.1 or later.","what":"GHSA-x9jp-4w8m-4f3c is a cross-site scripting vulnerability in django-jsonform, published on 10 Jun 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-x9jp-4w8m-4f3c and fix it if it is affected.\n\nWhat it is: GHSA-x9jp-4w8m-4f3c is a cross-site scripting vulnerability in django-jsonform, published on 10 Jun 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-x9jp-4w8m-4f3c in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django-jsonform (PyPI): affected all versions; fixed in 2.10.1\n- django-jsonform (PyPI): affected all versions; fixed in 2.10.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-x9jp-4w8m-4f3c/ (Markdown: https://insights.sbomify.com/GHSA-x9jp-4w8m-4f3c/index.md)","id":"GHSA-x9jp-4w8m-4f3c","markdown":"https://insights.sbomify.com/GHSA-x9jp-4w8m-4f3c/index.md","name":"GHSA-x9jp-4w8m-4f3c","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Django JSON form library","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary scripts in Django admin pages via stored XSS in django-jsonform, requiring admin access to exploit.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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`.","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Cross Site Scripting vulnerability in django-jsonform's admin form.","id":"GHSA-x9jp-4w8m-4f3c","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["2.10.1"],"introduced":["0"],"last_affected":[],"package":"django-jsonform","purl":null,"source":"GHSA-x9jp-4w8m-4f3c"},{"ecosystem":"PyPI","fixed":["2.10.1"],"introduced":["0"],"last_affected":[],"package":"django-jsonform","purl":"pkg:pypi/django-jsonform","source":"GHSA-x9jp-4w8m-4f3c"}],"products":null,"published":"2022-06-10","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can execute arbitrary scripts in Django admin pages via stored XSS in django-jsonform, requiring admin access to exploit.","url":"https://insights.sbomify.com/GHSA-x9jp-4w8m-4f3c/"}