pypi package report

Is dfir-unfurl safe?

2 known vulnerabilities, worst severity CRITICAL.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      No published models are known to use this package.


      cvss
      9.0
      critical

      severity band, no base score published

      epss
      not scored

      chance of exploitation in 30 days

      xyz score
      4.0
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-vg9h-jx4v-cwx2, the advisory selected below

      // 2 advisories

      GHSA-vg9h-jx4v-cwx2

      CRITICALGitHub rating
      // summary

      The Unfurl web app enables Flask debug mode even when configuration sets debug = False. The config value is read as a string and passed directly to app.run(debug=...), so any non-empty string evaluates truthy. This leaves the Werkzeug debugger active by default.

      // details
      • unfurl/app.py:web_app() reads debug via config['UNFURL_APP'].get('debug'), which returns a string.
      • UnfurlApp.__init__ passes that string directly to app.run(debug=unfurl_debug, ...).
      • If unfurl.ini omits debug, the default argument is the string "True".
      • As a result, debug mode is effectively always on and cannot be reliably disabled via config.
      // poc
      • Create a local unfurl.ini with debug = False under [UNFURL_APP].
      • Run the server using unfurl_app (or python -c 'from unfurl.app import web_app; web_app()').
      • Observe server logs showing Debug mode: on / Debugger is active!.
      • The included PoC script security_poc/poc_debug_mode.py --spawn automates this check.
      // poc script (inline)
      #!/usr/bin/env python3
      """
      Unfurl Debug Mode PoC (Corrected)
      ================================
      
      This PoC demonstrates that Unfurl's Flask debug mode is effectively
      **always enabled by default** due to string parsing of the `debug`
      config value. Even `debug = False` in `unfurl.ini` evaluates truthy
      when passed to `app.run(debug=...)`.
      
      Two modes:
      1) --spawn (default): launch a local Unfurl server with debug=False
         in a temp config and inspect logs for "Debug mode: on".
      2) --target: attempt a remote indicator check (best-effort; may be silent
         if no exception is triggered).
      """
      
      import argparse
      import os
      import subprocess
      import sys
      import tempfile
      import textwrap
      import time
      
      
      def run_spawn_check() -> None:
          repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
      
          ini_contents = textwrap.dedent("""
          [UNFURL_APP]
          host = 127.0.0.1
          port = 5055
          debug = False
          remote_lookups = false
      
          [API_KEYS]
          bitly =
          macaddress_io =
          """).strip() + "\n"
      
          with tempfile.TemporaryDirectory() as tmp:
              ini_path = os.path.join(tmp, 'unfurl.ini')
              with open(ini_path, 'w') as f:
                  f.write(ini_contents)
      
              env = os.environ.copy()
              env['PYTHONPATH'] = repo_root
      
              cmd = [sys.executable, '-c', 'from unfurl.app import web_app; web_app()']
              proc = subprocess.Popen(
                  cmd,
                  cwd=tmp,
                  env=env,
                  stdout=subprocess.PIPE,
                  stderr=subprocess.PIPE,
                  text=True
              )
      
              # Allow server to start and emit logs
              time.sleep(2)
              proc.terminate()
              try:
                  out, err = proc.communicate(timeout=2)
              except subprocess.TimeoutExpired:
                  proc.kill()
                  out, err = proc.communicate()
      
              output = (out or "") + (err or "")
      
          print("\n[+] Debug mode spawn check")
          print("    Config: debug = False")
      
          if "Debug mode: on" in output or "Debugger is active" in output:
             
      // impact

      If the service is exposed beyond localhost (bound to 0.0.0.0 or reverse-proxied), an attacker can access the Werkzeug debugger. This can disclose sensitive information and may allow remote code execution if a debugger PIN is obtained. At minimum, stack traces and environment details are exposed on errors.


      Checked 2026-11-07 at 23:15 UTC. The most recent advisory here was published 2026-01-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.