Skip to main content

DjangoBlog EUVDEUVD-2026-125611

| CVE-2026-129155 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-mr54-mm5f-7jw3
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Register/obtain commenter account
  2. Delivery
    Post comment with div autofocus+onfocus payload
  3. Exploit
    Sanitizer passes event-handler attribute
  4. Execution
    Victim loads comment page
  5. Persist
    Script auto-executes in victim session
  6. Impact
    Hijack admin/visitor session actions

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 account with comment-posting ability (PR:L) on DjangoBlog 2.0.0.0 through 2.1.0.0. The specific flaw is that the class_filter comment sanitizer (djangoblog/utils.py lines 248-269) retains event-handler attributes on span, div, pre and code tags; the attacker posts a comment with a div carrying autofocus plus onfocus so the handler fires automatically. The limiting factor is that a victim must load the page containing the malicious comment (UI:P) - but no click is needed because autofocus triggers onfocus for every visitor, including administrators. Risk is bounded by the authentication prerequisite and by the fact that only these four tag types and this comment-rendering path are affected.

Impact

This is a medium-severity, authenticated stored XSS (vendor/NVD-style CVSS 4.0 base 5.1). The CVSS 4.0 vector is internally consistent with the description: AV:N (comment posted over the network), AC:L and AT:N (no special timing or attack requirement), PR:L (the attacker must hold a comment-posting account), and UI:P (a victim must load the affected comment page, though the autofocus/onfocus trick removes any need for a click). Impact is split low across confidentiality and integrity on both the vulnerable and a subsequent system (VC:L/VI:L/SC:L/SI:L), reflecting script execution in another user's browser session rather than direct server compromise. No EPSS score and no KEV listing were provided, and exploitation status is: no public exploit identified as confirmed working - a public PoC reference exists (GitHub issue #1030 and vul.yulun.ac.cn) but it is not verified as working exploit code. The vuln.today decision label is 'this_month', consistent with a real but non-emergency issue: the authentication requirement (PR:L) and the need for victims to view attacker-controlled comments limit mass automated exploitation, but because the payload fires for every visitor including administrators, a successful inject can escalate toward admin-session actions. Net assessment: a genuine issue worth patching on a normal cycle, not a drop-everything emergency; the authentication gate and viewing requirement are the main factors keeping real-world risk below the raw CWE-79 worst case.

Exploit ScenarioDerived

An attacker who can register and post comments on a DjangoBlog 2.0.0.0-2.1.0.0 site submits a comment containing a div bearing autofocus and onfocus attributes, which the class_filter sanitizer wrongly preserves. When any later visitor - including a logged-in administrator - loads that comment thread, the browser auto-focuses the element and runs the attacker's script with no click required. A public PoC reference exists but is not verified as working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

Stored cross-site scripting in DjangoBlog 2.0.0.0 through 2.1.0.0 lets authenticated users who can post comments inject markup that survives the class_filter sanitizer (djangoblog/utils.py, lines 248-269), because event-handler attributes are preserved on span, div, pre and code tags. A commenter can submit a div carrying autofocus and onfocus so the script fires as soon as the comment is rendered, requiring no click from the victim - although the victim must still load the page displaying the comment (UI:P). Rated medium severity (CVSS 4.0 base 5.1; assessed CVSS 3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), with no CISA KEV entry and no public exploit identified at time of analysis; an upstream issue (#1030) tracks the behaviour.

RemediationAI

No vendor-released patch version is identified in the available data; the upstream issue at https://github.com/liangliangyy/DjangoBlog/issues/1030 is the tracking point and the VulnCheck advisory (https://www.vulncheck.com/advisories/djangoblog-2.0.0.0-through-2.1.0.0-stored-xss-via-comment-sanitizer-class-filter) should be monitored for a fixed release before upgrading. Until then, the most direct compensating control is to harden class_filter in djangoblog/utils.py (lines 248-269) so that on* event-handler attributes are stripped from span, div, pre and code and autofocus/tabindex-style attributes that can trigger focus handlers are removed - this is a local code change that must be re-applied after every upstream update. Operators who cannot patch the sanitizer can narrow the exposure by disabling raw HTML in comments (falling back to plain-text or Markdown-only rendering), by restricting comment posting to vetted or staff accounts, or by holding new comments for moderation before they render publicly; each of these reduces functionality or adds editorial overhead, and moderation only protects pages where the offending comment has not yet been approved. Because exploitation requires a comment-posting account, reviewing existing comments for injected div/span/pre/code markup with onfocus or other on* attributes and removing any hits limits payloads already stored in the database.

Affected VersionsENISA

DjangoBlog 2.0.0.0 ≤2.1.0.0

Affected Packages

euvd djangoblog 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

DjangoBlog is a Python/Django blogging application (CPE cpe:2.3:a:liangliangyy:djangoblog) whose comment pipeline passes user-supplied HTML through a custom sanitizer utility, class_filter, in djangoblog/utils.py (lines 248-269), which is also surfaced through the template filter in blog/templatetags/blog_tags.py (lines 138-141). The sanitizer is intended to strip dangerous markup but keeps event-handler attributes on a permitted set of structural tags - span, div, pre and code - so the root cause is CWE-79 (improper neutralization of input during web page generation) rather than a missing output-encoding step: the allowlist is simply too permissive. Because the payload is persisted in a comment and re-rendered to every viewer, the injected handler executes in the browser context of anyone reading the thread, and the autofocus attribute on the injected div causes onfocus to fire automatically, removing the need for a click. The assessed vector confirms a scope change (S:C) with low confidentiality and integrity impact and no availability impact; only this comment-rendering path and these four tag types are implicated.

Know when Djangoblog 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 commenter (PR:L) injects over the network (AV:N/AC:L); a victim must load the comment page (UI:R); script runs in the victim's browser authority (S:C) with limited C/I and no availability impact.

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

DjangoBlog 2.0.0.0 through 2.1.0.0 contains a stored cross-site scripting vulnerability because the class_filter comment sanitizer passes event-handler attributes on span, div, pre and code tags. Authenticated commenters can post a div with autofocus and onfocus attributes, executing script without interaction for every visitor, including administrators.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche open-source Django blog project, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.2%
Patch available No
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.

CVE-2026-6579 MEDIUM POC
5.5 Apr 19

DjangoBlog up to version 2.1.0.0 contains an authentication bypass vulnerability in the blog/views.py Clean Endpoint tha

CVE-2026-6577 MEDIUM POC
5.5 Apr 19

Missing authentication in DjangoBlog 2.1.0.0 and prior allows remote unauthenticated attackers to inject GPS tracking da

CVE-2026-6580 MEDIUM POC
5.5 Apr 19

Hard-coded Amap API key exposure in DjangoBlog allows remote attackers to abuse geolocation services without authenticat

CVE-2023-2954 MEDIUM POC
5.4 May 29

Cross-site Scripting (XSS) - Stored in GitHub repository liangliangyy/djangoblog prior to master. Rated medium severity

CVE-2026-6610 LOW POC
2.9 Apr 20

DjangoBlog up to version 2.1.0.0 contains hard-coded credentials in djangoblog/settings.py that can be exploited remotel

CVE-2026-6578 LOW POC
2.9 Apr 19

Liangliangyy DjangoBlog up to version 2.1.0.0 contains hard-coded credentials in the SECRET_KEY parameter within djangob

CVE-2026-6576 LOW POC
2.1 Apr 19

Command injection in DjangoBlog WeChat Bot Interface allows authenticated remote attackers to execute arbitrary system c

CVE-2026-6609 LOW POC
2.1 Apr 20

Improper authorization in liangliangyy DjangoBlog versions up to 2.1.0.0 allows authenticated remote attackers to manipu

CVE-2026-6611 LOW POC
1.3 Apr 20

DjangoBlog versions up to 2.1.0.0 use a hard-coded cryptographic key in djangoblog/settings.py when the SECRET_KEY argum

CVE-2026-129156 MEDIUM
5.1 Nov 13

Stored cross-site scripting in DjangoBlog (commits d186b1c through 6134ed6) lets an authenticated OAuth user store scrip

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