--- snapshot-1792958164+++ snapshot-1793095476@@ -2,7 +2,11 @@ Release notes from presidio -2026-10-25T19:00:26Z tag:github.com,2008:Repository/132129752/2.2.365 2026-10-25T19:31:46Z +2026-10-27T09:03:13Z tag:github.com,2008:Repository/132129752/2.2.366 2026-10-27T09:26:55Z + +Release 2.2.366 + +
This is a security release. It raises the Pillow requirement of presidio-image-redactor to 13.0.0, refreshes every lock file to clear 100 known advisories, locks Transformers 5.16.1 in the analyzer, and ships slimmed container images plus new distroless variants. It also drops Python 3.10.
Packages: presidio-analyzer 2.2.366, presidio-anonymizer 2.2.366, presidio 2.2.366, presidio-image-redactor 0.0.62, presidio-structured 0.0.10.
>=3.11,<3.15. Installs on Python 3.10 resolve to the previous releases.presidio-image-redactor requires Pillow 13. The requirement is now pillow>=13.0.0,<14.0.0. Pillow 13 fixes the 41 security advisories (5 critical, 23 high) open against Pillow 12.3.0 (#2393).hf_token_pipe is gone. The analyzer no longer depends on spacy-huggingface-pipelines. TransformersNlpEngine now registers its own presidio_hf_token_pipe factory. A spaCy pipeline saved with nlp.to_disk() that references hf_token_pipe no longer loads; Presidio never saves such a pipeline itself. Detection results and scores are unchanged.transformers extra requires transformers>=4.28.0,<6.0.0. The gliner extra requires gliner>=0.2.29, transformers>=4.51.3,<5.17.0 and a single onnxruntime>=1.19. Installing Transformers 5.10 or later is recommended to pick up the security fixes.curl. The image HEALTHCHECK now probes /health with the Python standard library and ignores HTTP_PROXY. The docker-compose.yml healthcheck overrides were removed so the image healthchecks apply. Existing image tags keep their names.python:3.12-slim and python:3.14-slim bases are re-pinned with OS security updates applied, uv is bind-mounted at build time instead of installed, and setuptools and wheel (plus pip in the anonymizer) are removed from the final image. Trivy critical, high and medium findings drop from 321 to 103 (anonymizer) and from 345 to 113 (analyzer). (#2407)uv.lock file to fix the 100 known advisories in the locked development and CI dependencies, including pillow 13.0.0, virtualenv 21.14.13, pyjwt 2.15.1, aiohttp 3.14.5, urllib3 2.8.0, cryptography 50.0.2, filelock 4.2.4, oauthlib 4.0.0 and certifi 2026.10.23. Apart from the Pillow and onnxruntime requirements above, published dependency ranges are unchanged. (#2409)transformers to 5.16.1 in the analyzer, which fixes GHSA-xrqw-3rrv-vx5w and GHSA-x9r9-c232-4q39. (#2201)presidio-image-redactor Pillow requirement to 13 and replaced the Image.getdata() call in the DICOM redactor with get_flattened_data(), since getdata() is deprecated in Pillow 13 and removed in Pillow 14. (#2393, #2409)Distroless container images. The analyzer and anonymizer are also published as distroless images built on Azure Linux, tagged and latest-distroless in the same GHCR repositories. The unsuffixed tags, including latest, remain the default images. The distroless images contain no shell, package manager, pip or uv, run Python 3.12 as UID 65532, listen on port 3000, and take gunicorn settings through GUNICORN_CMD_ARGS instead of PORT and WORKERS. Trivy findings are 1 (anonymizer) and 6 (analyzer). A docker-compose.distroless.yml override runs them locally. (#2407)
docker pull ghcr.io/data-privacy-stack/presidio-analyzer:2.2.366-distroless docker pull ghcr.io/data-privacy-stack/presidio-anonymizer:2.2.366-distrolessContext-aware enhancer configuration in YAML. A new optional context_aware_enhancer section in the analyzer configuration sets the LemmaContextAwareEnhancer parameters (context_similarity_factor, min_score_with_context_similarity, context_prefix_count, context_suffix_count, context_matching_mode) without Python code. Invalid values are rejected at parse time with an actionable message. Configurations without the section keep the previous defaults. (#2373)
CNAME file, which took presidio.dataprivacystack.org offline after every publish. Canonical links and the sitemap now use the custom domain. (#2410)docker run port mapping for a source-built anonymizer image now maps to container port 3000. (#2407)Full Changelog: 2.2.365...2.2.366
github-actions[bot] tag:github.com,2008:Repository/132129752/2.2.365 2026-10-25T19:31:46Z Release 2.2.365 @@ -38,8 +42,4 @@ 2.2.357 -This list of changes was auto generated.