Skip to main content

Pydici EUVDEUVD-2026-131655

| CVE-2026-133871 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 VulnCheck GHSA-f6g5-73wp-4xxv
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with contact-edit permission
  2. Exploit
    Store malicious markup in contact name
  3. Execution
    Victim opens contact detail page
  4. Impact
    Script 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pydici 0 ≤2026.11.1

Affected Packages

euvd pydici no fix

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche open-source IT-consulting management app, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy