CVE-2019-1020019
Description
Cross-Site Scripting (XSS) vulnerabilities in invenio-previewer before 1.0.0a12 allow attackers to execute arbitrary JavaScript via crafted JSON, Markdown, or iPython Notebook files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Cross-Site Scripting (XSS) vulnerabilities in invenio-previewer before 1.0.0a12 allow attackers to execute arbitrary JavaScript via crafted JSON, Markdown, or iPython Notebook files.
According to NVD [1], invenio-previewer before 1.0.0a12 contains multiple Cross-Site Scripting (XSS) vulnerabilities. The flaws exist in the JSON, Markdown, and iPython Notebook previewers, where user-uploaded file content is rendered without proper sanitization, allowing embedded scripts to execute in the browser [3][4].
An attacker can exploit these vulnerabilities by uploading a maliciously crafted JSON, Markdown, or iPython Notebook file containing embedded JavaScript. When a victim views the file using the affected previewer, the script executes in the victim's browser context. The attack requires the ability to upload files but no special privileges beyond that [3][4].
Successful exploitation enables the attacker to execute arbitrary JavaScript in the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive data [3].
The issue is fixed in invenio-previewer version 1.0.0a12. As a workaround, administrators can disable the affected previewers (json_prismjs, mistune, ipynb) by modifying the PREVIEWER_PREFERENCE configuration list [3][4].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
invenio-previewerPyPI | < 1.0.0a12 | 1.0.0a12 |
Affected products
2- Range: < 1.0.0a12
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-j9m2-6hq2-4r3cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-1020019ghsaADVISORY
- github.com/inveniosoftware/invenio-previewer/security/advisories/GHSA-j9m2-6hq2-4r3cghsax_refsource_MISCWEB
- github.com/pypa/advisory-database/tree/main/vulns/invenio-previewer/PYSEC-2019-26.yamlghsaWEB
News mentions
0No linked articles in our index yet.