--- title: "Django has Inefficient Algorithmic Complexity" system_id: "django" category: "frameworks" advisory_mode: "core" published_date: "2026-02-03T15:30:23Z" updated_date: "2026-02-22T23:41:06.153879Z" severity: "medium" exploit_status: "unknown" source_confidence: "official" verification_status: "triage-manual" verification_mode: "synthetic" artifact_mode: "synthetic" last_run_id: "" target_types: - "lab-local" - "lab-public" - "authorized-third-party" allow_public_validation: "yes, with ownership or explicit authorization" authorization_prerequisite: "asset ownership proof or explicit written authorization" minimal_validation: "read-only probe, controlled payload, reversible test" aliases: - "BIT-django-2025-14550" - "CVE-2025-14550" - "GHSA-33mw-q7rj-mjwj" affected_versions: - "6.0" - "6.0.1" - "6.0a1" - "6.0b1" - "6.0rc1" - "5.2" - "5.2.1" - "5.2.10" - "5.2.2" - "5.2.3" - "5.2.4" - "5.2.5" - "5.2.6" - "5.2.7" - "5.2.8" - "5.2.9" - "5.2a1" - "5.2b1" - "5.2rc1" - "4.2" fixed_versions: - "6.0.2" - "5.2.11" - "4.2.28" entity_refs: - "django:system:root-system" - "django--project--django:project:affected-component" secure_code_topics: - "xss-output-encoding" - "path-traversal-guard" - "file-upload-validation" primary_source: "https://nvd.nist.gov/vuln/detail/CVE-2025-14550" --- # Django has Inefficient Algorithmic Complexity ## 本地实证状态 - 实证状态: `triage-manual` - 实证方式: `synthetic` - Artifact 模式: `synthetic` - 最近运行: `-` - 浏览器证据: `missing` - Run Bundle: `-` ## 事件层 - Canonical ID: `django--CVE-2025-14550` - 系统: `django` - 严重度: `medium` - 来源置信度: `official` - 官方主源: https://nvd.nist.gov/vuln/detail/CVE-2025-14550 - 影响版本: `6.0, 6.0.1, 6.0a1, 6.0b1, 6.0rc1, 5.2, 5.2.1, 5.2.10, 5.2.2, 5.2.3` - 修复版本: `6.0.2, 5.2.11, 4.2.28` ## 对象与版本映射 - Advisory Scope: `package` - 影响对象: `django` - Entity Refs: `django, django--project--django` - 版本置信度: `high` - 版本缺口: `-` - 版本证据源: `https://nvd.nist.gov/vuln/detail/CVE-2025-14550, https://github.com/django/django/commit/eb22e1d6d643360e952609ef562c139a100ea4eb, https://docs.djangoproject.com/en/dev/releases/security, https://github.com/django/django, https://groups.google.com/g/django-announce` ## 受控验证流程 - Workflow ID: `django--CVE-2025-14550--workflow` - 漏洞家族: `xss` - 入口面: `web-ui-render-path` - 需要角色: `editor-or-admin` - 触发向量: 对 `xss` 家族入口投递最小化、可审计、可回滚的受控输入,比较修复前后差异。 - 请求/页面入口: `/admin/editor, /preview, /rendered-content` - 输入形态: 受控 HTML/Markdown/富文本输入,观察渲染上下文是否失去编码或净化。 - 预期不安全行为: 输入在目标上下文执行或被浏览器解释为主动内容。 ## 其他来源 - https://github.com/django/django/commit/eb22e1d6d643360e952609ef562c139a100ea4eb - https://docs.djangoproject.com/en/dev/releases/security - https://github.com/django/django - https://groups.google.com/g/django-announce - https://www.djangoproject.com/weblog/2026/feb/03/security-releases ## 证据点与补丁验证 ### 服务端证据点 - 应用日志中的命中路径、鉴权决策和异常栈 - 反向代理或边界层日志中的请求头、来源 IP 与路由决策 ### 浏览器证据点 - 基线截图与攻击后截图的 DOM/视觉差异 - console、network 与 response metadata 中的异常信号 ### 数据库/文件系统证据点 - 数据库中新增/越权读取的测试数据 - 文件系统中新增上传样本、缓存条目或越权读取痕迹 ### 检测信号 - WAF / reverse proxy 异常日志、访问日志和告警 - 应用审计日志中的权限错误、重定向异常、模板渲染或上传落盘事件 ### 补丁验证步骤 - 确认目标版本从 `6.0, 6.0.1, 6.0a1` 升级或回移到 `6.0.2`。 - 保留同一组受控输入,在修复前后分别执行并比对响应、日志与浏览器证据。 - 确认修复后仅保留预期业务行为,不再触发越权、回显、异常渲染或错误请求。 - 补充 `xss` 族自动化回归,避免同类路径在插件、主题或代理链中回归。 ### 实验安全备注 - 只使用回环地址、哨兵目标、无害样本或可回滚测试数据。 - 禁止造成持久破坏、越权下载真实数据或不可回滚 side effect。 - 如需浏览器证据,保留 baseline / proof 两份快照以及 console / network 记录。 ## 实验层 - 仅用于自有资产、测试环境或已明确授权目标。 - 允许公网可达目标,但必须满足资产归属或明确授权前提。 - 最小化验证方式: 最小化验证、只读探测、可审计回显、受控注入。 - 若该案例涉及插件、模块或扩展,应同时检查供应链与升级策略。 - 禁止场景: 无归属证明或无明确授权的公网目标;知名公共网站或与测试无关的第三方资产;会造成持久破坏、数据越权下载或不可回滚影响的动作 ## 修复示例 - [javascript-typescript:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/javascript-typescript/xss-output-encoding.md) - [nodejs:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/nodejs/xss-output-encoding.md) - [java:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/java/xss-output-encoding.md) - [php:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/php/xss-output-encoding.md) - [python:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/python/xss-output-encoding.md) - [ruby:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/ruby/xss-output-encoding.md) - [csharp:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/csharp/xss-output-encoding.md) - [go:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/go/xss-output-encoding.md) - [javascript-typescript:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/javascript-typescript/path-traversal-guard.md) - [nodejs:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/nodejs/path-traversal-guard.md) - [java:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/java/path-traversal-guard.md) - [php:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/php/path-traversal-guard.md) - [python:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/python/path-traversal-guard.md) - [ruby:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/ruby/path-traversal-guard.md) - [csharp:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/csharp/path-traversal-guard.md) - [go:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/go/path-traversal-guard.md) - [javascript-typescript:file-upload-validation](/Users/x/websafe/05-defense/secure-code/javascript-typescript/file-upload-validation.md) - [nodejs:file-upload-validation](/Users/x/websafe/05-defense/secure-code/nodejs/file-upload-validation.md) - [java:file-upload-validation](/Users/x/websafe/05-defense/secure-code/java/file-upload-validation.md) - [php:file-upload-validation](/Users/x/websafe/05-defense/secure-code/php/file-upload-validation.md) - [python:file-upload-validation](/Users/x/websafe/05-defense/secure-code/python/file-upload-validation.md) - [ruby:file-upload-validation](/Users/x/websafe/05-defense/secure-code/ruby/file-upload-validation.md) - [csharp:file-upload-validation](/Users/x/websafe/05-defense/secure-code/csharp/file-upload-validation.md) - [go:file-upload-validation](/Users/x/websafe/05-defense/secure-code/go/file-upload-validation.md)