Intel

AIKIDO-2026-230792

datacontract-cli is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

54

Medium Risk

This Affects:

PYTHONdatacontract-cli
0.10.2 - 1.1.1
Fixed in 1.1.2
Are you affected? Scan for Free

TL;DR

datacontract export html and datacontract catalog render data contract field values into Jinja HTML without reliably escaping them, and Mermaid diagram names from model/field/type strings are embedded in a | safe <pre class="mermaid"> block after only light sanitization. An attacker who can influence contract content can inject HTML or script that runs when a victim opens the generated HTML or catalog page. The fix enables proper Jinja autoescape for HTML templates and strips HTML-unsafe characters from Mermaid names before they are embedded.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you export HTML or generate a catalog from data contracts that may contain untrusted field values.

Background info

datacontract-cli is vulnerable to Cross-Site Scripting (XSS) in versions 0.10.2 - 1.1.1.

How to fix this

Upgrade the datacontract-cli library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform