Skip to main content

Djangoblog CVE-2026-6578

| EUVDEUVD-2026-23710 LOW
Use of Hard-coded Credentials (CWE-798)
2026-04-19 VulDB GHSA-jf35-jg3h-pwmh
2.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Discover DjangoBlog instance
  2. Delivery
    Locate exposed settings.py or GitHub repository
  3. Exploit
    Extract hard-coded SECRET_KEY
  4. Execution
    Generate forged session token
  5. Persist
    Authenticate as admin
  6. Impact
    Modify application data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Credential externalization
MITRE ATT&CK

2 techniques across 2 tactics: Persistence, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires that the SECRET_KEY in djangoblog/settings.py remains hard-coded and unchanged from the application's default or distributed state. Exploitation becomes practical only if the attacker can access the SECRET_KEY value, which typically involves: (1) source code exposure via an accessible Git repository, GitHub pages, or unprotected backup files; (2) information disclosure via verbose error messages or exception handlers that reveal configuration; (3) filesystem access if the server is misconfigured (e.g., web root includes settings files); or (4) supply-chain compromise if the attacker has access to the development or deployment pipeline. If the SECRET_KEY has been properly regenerated and stored securely (environment variables, secrets manager), the vulnerability is effectively mitigated. Default deployments that follow Django best practices (randomizing SECRET_KEY and storing it outside of version control) are NOT vulnerable. Non-default configurations that expose settings.py or commit it to public repositories ARE vulnerable. The network vector (AV:N) is achieved only because an attacker with the SECRET_KEY can then craft malicious requests remotely; direct remote exploitation without prior SECRET_KEY acquisition is not feasible.

Impact

The CVSS vector (AV:N/AC:H/PR:N/UI:N) indicates network-accessible remote exploitation without authentication, but with high attack complexity, yielding a moderate score of 5.6. The high complexity rating (AC:H) and E:P (exploit proof-of-concept) vector suggest that while exploitation is technically possible and publicly demonstrated, it is not trivial - likely requiring code review of the settings file or access to configuration details. The 'difficult exploitability' noted in the description aligns with AC:H, though this appears contradictory to AV:N/PR:N claims in the CVSS vector; this suggests the actual attack path may require either partial information disclosure (e.g., source code exposure via GitHub, backup files, or verbose error messages) or targeted reconnaissance. The absence of EPSS data, KEV status, and confirmed active exploitation in the wild indicates this is a publicly disclosed vulnerability with theoretical risk rather than widespread active compromise. The availability of public POC code lowers the barrier for motivated attackers with knowledge of DjangoBlog deployments. Risk priority depends on: (1) whether target applications expose source code or settings files through common misconfiguration, (2) whether the organization uses DjangoBlog in production, and (3) the sensitivity of session data and administrative functions protected by that SECRET_KEY. For organizations running unpatched DjangoBlog instances with typical deployment patterns, this represents a moderate-to-high priority authentication bypass.

Exploit ScenarioDerived

An attacker discovers a DjangoBlog installation via public-facing web application, then obtains the hard-coded SECRET_KEY by accessing the exposed djangoblog/settings.py file (via source code repository disclosure, backup file exposure, or verbose error messages). Using the retrieved SECRET_KEY, the attacker forges a Django session cookie for an administrative account and sends it with a request to the blog's login endpoint, gaining authenticated access without credentials. Once authenticated, the attacker can modify blog content, create backdoor accounts, or exfiltrate sensitive data depending on the application's functional scope.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 19, 2026

Liangliangyy DjangoBlog up to version 2.1.0.0 contains hard-coded credentials in the SECRET_KEY parameter within djangoblog/settings.py, allowing remote unauthenticated attackers to bypass authentication and encrypt/decrypt sensitive session data. The vulnerability has been publicly disclosed with exploit code available on GitHub, though the vendor did not respond to early disclosure notification. With a CVSS score of 5.6 and AC:H rating, practical exploitation requires moderate technical effort but affects confidentiality, integrity, and availability.

RemediationAI

Immediately regenerate and randomize the SECRET_KEY in djangoblog/settings.py to a cryptographically strong, unique value (Django provides a key generation utility via django-admin shell or the django.core.management.utils.get_random_secret_key() function). This should be environment-specific and never committed to version control; use environment variables or secure configuration management (e.g., .env files excluded from Git, or HashiCorp Vault). Upgrade DjangoBlog to a patched version once the vendor releases one; the provided references do not confirm a fix version, so contact the vendor or monitor the GitHub repository at https://github.com/liangliangyy/DjangoBlog for updates. As a compensating control pending a vendor patch, isolate DjangoBlog instances behind authentication proxies or VPNs to restrict network access, and scan production deployments for exposed settings files or source code disclosure via directory traversal, backup archives, or Git repositories left accessible. Invalidate all existing sessions after rotating the SECRET_KEY by flushing the session store to prevent attackers from using pre-generated tokens. Optionally, implement additional session hardening via Django's SESSION_COOKIE_SECURE, SESSION_COOKIE_HTTPONLY, and SESSION_COOKIE_SAMESITE settings.

Affected VersionsENISA

DjangoBlog 2.1.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 Django-based blogging platform that relies on Django's SECRET_KEY setting, a cryptographic key used to sign session cookies, CSRF tokens, and other security-sensitive data. The vulnerability stems from CWE-798 (Use of Hard-coded Credentials), where the SECRET_KEY is not properly randomized or protected during application deployment. When an attacker obtains or reconstructs the hard-coded SECRET_KEY from djangoblog/settings.py, they can forge valid session tokens, bypass CSRF protections, and manipulate signed data structures. This breaks the fundamental trust mechanism Django uses to protect authenticated sessions. The affected component is the Setting Handler that processes configuration in djangoblog/settings.py across all versions up to 2.1.0.0.

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 (VulDB) PRIMARY 2.9 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

5
Severity Changed
Apr 29, 2026 - 01:12 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:12 NVD
6.3 (MEDIUM) 2.9 (LOW)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
CVSS changed
Apr 19, 2026 - 22:22 NVD
5.6 (MEDIUM) 6.3 (MEDIUM)
CVE Published
Apr 19, 2026 - 21:15 nvd
LOW 2.9

DescriptionCVE.org

A security flaw has been discovered in liangliangyy DjangoBlog up to 2.1.0.0. This affects an unknown function of the file djangoblog/settings.py of the component Setting Handler. The manipulation of the argument SECRET_KEY results in hard-coded credentials. The attack can be launched remotely. The attack requires a high level of complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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-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-129155 MEDIUM
5.1 Nov 13

Stored cross-site scripting in DjangoBlog 2.0.0.0 through 2.1.0.0 lets authenticated users who can post comments inject

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