Pydici through 2026.11.1 contains a stored cross-site scripting vulnerability that allows authenticated users to inject script by storing HTML in contact names rendered unescaped in the contact detail mermaid diagram. Attackers with contact edit permission can store malicious markup that Contact.relationData() interpolates and contact_detail.html renders with the safe filter, executing script in victims' sessions.
https://github.com/digitalfox/pydici/issues/234
https://github.com/digitalfox/pydici/commit/2d71a58df112cfe697c829af79ce7c5c402f876b
https://github.com/digitalfox/pydici/blob/v2026.11.1/templates/crm/contact_detail.html#L44-L47
https://github.com/digitalfox/pydici/blob/v2026.11.1/crm/models.py#L223-L229