Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with contact-edit permission
-
ExploitStore malicious markup in contact name
-
ExecutionVictim opens contact detail page
-
ImpactScript runs in victim session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Pydici account that holds contact edit permission (PR:L); the attacker stores HTML/script in a contact's name field, which Contact.relationData() (crm/models.py) interpolates into the contact relation mermaid diagram and templates/crm/contact_detail.html renders with Django's |safe filter. The payload only fires when a second user passively views that specific contact's detail page (UI:P), so successful attack depends on a victim opening the poisoned contact. Limiting factors: it is not remote-unauthenticated - the attacker must already be able to edit contacts, exploitation targets whoever views the affected contact page, and only versions through 2026.11.1 are affected (the fix removes the |safe filter). A parallel |safe usage in templates/leads/activities.html (kanban_activites_data) was hardened in the same commit. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency. The signals are internally consistent: the CVSS 4.0 base score is 5.1 (medium), the vendor-assigned vector (AV:N/AC:L/AT:N/PR:L/UI:P) shows that exploitation is network-reachable and low-complexity but requires an authenticated attacker who already holds contact edit permission (PR:L) and a victim who actively views the affected page (UI:P). Impact is low across confidentiality and integrity (VC:L/VI:L) with a scope/subsequent-system effect (SC:L/SI:L) consistent with script running in a victim's browser session rather than full server compromise. The vuln.today Decision label is 'this_month', which aligns with the medium severity and the privilege/interaction preconditions. There is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis, so there is no evidence of active or widespread exploitation - the risk is that of a privilege-gated stored XSS, bounded by who can edit contacts and who views the contact detail page. No key signals conflict here: the network attack vector is credible for a web app, and the PR:L / UI:P qualifiers are confirmed by the source-code evidence (an authenticated edit path feeding an unescaped |safe render). |
| Exploit ScenarioDerived | An authenticated Pydici user who holds contact edit permission sets a contact's name to malicious HTML/JavaScript markup, which is stored in the database. When another user - potentially an administrator - opens that contact's detail page, Contact.relationData() interpolates the name into the mermaid relation diagram and contact_detail.html renders it through Django's |safe filter, executing the attacker's script in the victim's authenticated session. No public exploit code is identified, though the fixing commit and the VulnCheck advisory disclose the exact vulnerable template line. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stored cross-site scripting in Pydici through 2026.11.1 allows an authenticated user holding contact edit permission to plant HTML/script in a contact's name field, which Contact.relationData() interpolates into the contact relation mermaid diagram and templates/crm/contact_detail.html renders with Django's |safe filter. The payload executes in the session of any user who opens that specific contact's detail page, so the attack requires victim interaction and a second user viewing the poisoned record. No public exploit code and no confirmed active exploitation were identified at time of analysis; the vendor addressed the flaw in commit 2d71a58df112cfe697c829af79ce7c5c402f876b, which drops the |safe filter and also hardens a parallel |safe usage in the leads kanban template.
RemediationAI
Apply the upstream fix commit 2d71a58df112cfe697c829af79ce7c5c402f876b (https://github.com/digitalfox/pydici/commit/2d71a58df112cfe697c829af79ce7c5c402f876b), which replaces the |safe filter on contact.relationData in templates/crm/contact_detail.html with escaped output and makes the equivalent change for kanban_activites_data in templates/leads/activities.html; patch data states a vendor fix is available, but a tagged patched release version is not independently confirmed, so deployments should verify which release contains the commit or apply the change directly. Where an immediate upgrade is not possible, the documented prerequisite (an authenticated account with contact edit permission) can be used as a scoping control: restrict contact edit rights to trusted staff and audit existing contact names for stored HTML or script markup, with the trade-off that this narrows the legitimate editing workflow and does not repair the underlying unsafe rendering for users who retain edit rights. Vendor and repository references: https://github.com/digitalfox/pydici/issues/234 and https://www.vulncheck.com/advisories/pydici-through-2026.11.1-stored-xss-via-contact-name-in-relation-diagram.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pydici is a Django-based CRM, and the flaw is a classic CWE-79 output-encoding failure at the template layer rather than a flaw in Django itself. Internally, Contact.relationData() (crm/models.py, lines 223-229 in v2026.11.1) builds mermaid diagram markup by interpolating contact names, and templates/crm/contact_detail.html (lines 44-47) then emits that string through the |safe filter, which disables Django's automatic HTML escaping for that expression. Any markup stored in a contact name is therefore passed verbatim into the rendered page. The same commit also changes templates/leads/activities.html so that kanban_activites_data is rendered without |safe, indicating a second instance of the same unsafe-interpolation pattern was identified and hardened alongside the primary fix. CPE data (cpe:2.3:a:digitalfox:pydici:*:*:*:*:*:*:*:*) covers releases up to and including 2026.11.1; the trigger is a victim passively loading the poisoned contact detail page, and the vulnerable path is confined to the mermaid relation-diagram rendering.
Know when Pydici gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated attacker with contact-edit rights (PR:L) stores script that runs when a victim views the page (UI:R); XSS crosses into the victim's browser context (S:C) with limited C/I impact and no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-131655
GHSA-f6g5-73wp-4xxv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB