Skip to content

security: resolve Dependabot alerts + release v1.1.10 - #44

Merged
bitkarrot merged 3 commits into
mainfrom
security/dependency-updates
Nov 27, 2026
Merged

bitkarrot merged 3 commits into
mainfrom
security/dependency-updates

Conversation

@bitkarrot

Copy link
Copy Markdown
Owner

Summary

  • Resolves open Dependabot alerts in uv.lock: critical (certifi, pillow, PyJWT), high (black, dnspython, filelock, virtualenv), plus medium/low (tornado et al.)
  • Upgrades lnbits 1.6.2 → 1.7.1 — required because lnbits 1.6.x pins pyjwt~=2.12.0, and PyJWT CVEs are only fixed in 2.14+
  • Adds uv override-dependencies for pillow>=13.0.0, packaging>=26.3, virtualenv>=21.14.9, bitstring<5.0.0 — these affect only the dev/test lock environment; production uses the host lnbits install's versions. Rationale documented in pyproject.toml comments
  • requires-python narrowed to >=3.11 (pillow 13 needs it; Python 3.10 is EOL)
  • Bumps version to 1.1.10 in pyproject.toml, config.json, package.json, package-lock.json for the release

Note

One medium PyJWT alert (no patched version published yet) cannot be resolved by upgrading and will remain open.

Test plan

  • python -m pytest decoder/tests from parent dir: 7 passed
  • Verified no dependency downgrades in lock diff
  • CI lint workflow passes

Resolves critical alerts in certifi, pillow, and PyJWT, high-severity
alerts in black, dnspython, filelock, and virtualenv, and the
medium/low alerts in tornado and the above via lock regeneration:

- certifi -> 2026.11.20, pillow -> 13.0.0, pyjwt -> 2.15.1
- black -> 26.10.1, dnspython -> 2.9.2, filelock -> 4.3.1
- tornado -> 6.6.1, virtualenv -> 21.15.13
- lnbits 1.6.2 -> 1.7.1 (needed to unpin pyjwt ~=2.12.0)

lnbits pins pillow (~=12.3.0) and packaging (~=25.0.0) to ranges that
only contain vulnerable versions, so uv overrides force the patched
versions in the dev/test lock environment. Production deployments use
whatever versions the host lnbits install provides. bitstring is
capped below 5.0.0 because bolt11 2.1.x (pinned by lnbits) imports
ConstBitStream, which bitstring 5.x removed.

requires-python narrowed to >=3.11 (pillow 13 requirement; python
3.10 is EOL as of October 2026).

Tests: 7 passed via `python -m pytest decoder/tests` from parent dir.
The dependency tree resolves cleanly on 3.13, and the lint CI runs on
python 3.13 - the <3.13 pin is what makes every lint job fail on main.
coincurve 20.0.0 has no cp313 wheels and its sdist fails to build with
current scikit-build-core, which broke every lint CI job's env install.
@bitkarrot

Copy link
Copy Markdown
Owner Author

Note on CI: the poetry job failure is structural — lnbits 1.7.1 itself declares requires-python >=3.11,<3.13, so poetry (which doesn't apply uv overrides and resolves the project's full python range including 3.13) cannot solve the tree. Meanwhile the 5 lint jobs need 3.13 included in requires-python because CI runs on python 3.13. No single requires-python value can satisfy both. Net effect vs main: black/mypy/prettier/pyright/ruff go from fail → pass; poetry goes pass → fail.

@bitkarrot
bitkarrot merged commit 8945559 into main Nov 27, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant