Repository navigation
[2.0] fix(ingestion): backport CVE dependency floors and the PowerBI .pbit Zip Slip fix (#37748, #37858, #37859) - #37861
Conversation
… alerts (#37748) oauthlib >= 4.0.1 fixes GHSA-3jp2-3mrg-2vxc (device-code grant issues a token for any device_code). filelock >= 4.2.1 fixes GHSA-v4x8-3wr5-3wq8 (ReadWriteLock follows planted symlinks) and dnspython >= 2.9.0 fixes GHSA-45c3-73f7-pv4m (name decompression CPU DoS); both fixes need Python 3.11, so the floors carry a python_version marker and the 3.10 fork keeps the vulnerable releases. The images pip-install openmetadata-ingestion from PyPI rather than from uv.lock, so the floors go in setup.py where they reach both. The in-tree Airflow constraints pin oauthlib 3.3.1 and filelock 3.32.6; bump them, and snowflake-connector-python to 4.8.1 because 4.7.x caps filelock < 4. (cherry picked from commit 8a95e0c)
… CVEs (#37858) dnspython >= 2.9.2 fixes CVE-2026-128089, which the 2.9.0 floor from opentelemetry-exporter-otlp 1.45.2 brings opentelemetry-api 1.45.2 for CVE-2026-126360. The dnspython and tornado fixes need Python 3.11, so the existing python_version markers stay and the 3.10 fork keeps the old releases. The in-tree Airflow constraints pin dnspython 2.9.0, tornado 6.5.9 and the OpenTelemetry family at 1.45.1 / 0.66b1; bump them to match, and regenerate uv.lock for just these packages. (cherry picked from commit b7a53e0)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
…ing (#37859) * fix(ingestion): validate PowerBI .pbit archive members before extracting get_datamodel_schema_files_from_pbit() called extractall() on .pbit files pulled from a shared bucket or folder without checking member names. CPython's extractall rewrites ".." and absolute names, so nothing lands outside the target today, but the crafted entry is silently relocated rather than rejected, and the download step in the same file already validates paths explicitly. Extract member by member and skip, with a warning, any entry whose resolved path leaves the extract directory. Also handle each .pbit on its own, so one corrupt file no longer discards the schemas of all the others. * test(ingestion): assert the .pbit escape paths a traversal would actually reach * fix(ingestion): skip a .pbit that fails mid-extraction instead of dropping all schemas Opening a ZIP reads only its central directory, so damaged compressed data fails later, during extraction, with zlib.error, EOFError, RuntimeError or NotImplementedError. The per-file handler caught only BadZipFile and OSError, so those errors reached the outer handler and returned None for every archive. Catch any extraction failure per file, and add a test with damaged deflate data next to a good archive. * style(ingestion): use lazy %-style logging in the .pbit extraction warnings * test(ingestion): assert the good .pbit's parsed schema instead of mocking the schema reader (cherry picked from commit def1e9e)
Code Review ✅ Approved 🟡 Medium riskRaising ingestion dependency floors and changing .pbit extraction behavior could affect package compatibility or cause archive contents to be skipped. Backports CVE-driven dependency floors (oauthlib, filelock, dnspython, tornado, OpenTelemetry, and Airflow constraints) and hardens PowerBI VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #
Backports #37748, #37858 and #37859 to 2.0 in one PR. Each is cherry-picked as its own commit.
.pbitextraction (fix(ingestion): validate PowerBI .pbit archive members before extracting #37859): skip archive members whose path escapes the extract directory, and skip only a damaged archive instead of dropping every schemaConflicts resolved:
uv.lock: dropped, because 2.0 has none.setup.py: 2.0 never had main'stornado>=6.6line, so the>=6.6.1line is added as-is.file_client.py: kept 2.0'sOptional[List[...]]signature on_get_datamodel_schema_list.Verified on current 2.0:
uv pip compile .[all]at Python 3.12 resolves dnspython 2.9.2, filelock 4.2.10, oauthlib 4.0.1, otel-api 1.45.2.pip --dry-runof openmetadata-airflow-apis + apache-airflow 3.3.2 with the updated constraints resolves.ingestion/srcimports these packages directly.Type of change:
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable new issue was established.Summary
Updates ingestion dependency floors and Airflow constraints for security fixes. The latest changes also tighten PowerBI archive extraction.
.pbitarchive is unreadable.Reviews (3) · Last reviewed commit: "fix(ingestion): validate PowerBI .pbit a..." · Reviewed by Greptile