graphifyy is vulnerable to Cross-Site Scripting (XSS)
59
Medium Risk
The HTML report exporter in graphify/exporters/html.py builds the neighbor focus links by dropping a node id straight into a double-quoted inline onclick attribute in the generated graph.html. Node ids and labels sourced from documents or from titles scraped via graphify add can contain a double-quote, which truncates the attribute and lets a hostile source inject a live event handler into the report. When a user opens the exported report locally, the injected handler executes as stored cross-site scripting. The fix carries the id in an HTML-escaped data-nid attribute dispatched through a single delegated click listener, removing the injection vector.
You are affected if you are using a version that falls within the vulnerable range and you export HTML graph reports built from untrusted or externally sourced content.
graphifyy is vulnerable to Cross-Site Scripting (XSS) in versions 0.3.1 - 0.9.14.
Upgrade the graphifyy library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant