github sgasser/pasteguard v0.9.9
PasteGuard 0.9.9

3 hours ago

PasteGuard 0.9.9 updates the PII detector's Transformers dependency past two high-severity advisories and installs the detector from a lockfile.

Security fixes

  • Update Transformers in the detector from 5.6.2 to 5.22.2. The detector now requires transformers[sentencepiece]>=5.10.0,<5.23 and gliner>=0.2.30,<0.3. #198
    • GHSA-xrqw-3rrv-vx5w (high): path traversal in save_pretrained() through crafted chat template names. Fixed in 5.10.0.
    • GHSA-x9r9-c232-4q39 (high): load_custom_generate() downloads custom generation code before the trust_remote_code check. Affects 4.49.0 through 5.8.1.
    • The detector only loads its model with GLiNER.from_pretrained() and runs predict_entities(), so neither code path is known to be reachable. Images from 0.9.0 through 0.9.8 nevertheless pinned an affected Transformers range (>=5.6.2,<5.7). Earlier images did not pin Transformers and may also contain an affected release.
    • The PII accuracy benchmark gives the same results with Transformers 5.22.2 and tokenizers 0.23.3 as before.
  • Install the detector from detector/uv.lock in the Docker image and in CI. The image now contains exactly the locked versions, and GitHub's dependency graph lists them, so Dependabot can match advisories against them. #199
    • This updates setuptools in the image from 83.0.0 to 84.2.1, which fixes GHSA-xmj3-9gf7-h52w (low, affects Windows only).

Other detector updates

These detector packages also change in the image: tokenizers 0.22.2 → 0.23.3, fastapi 0.162.5 → 0.163.1, filelock 4.2.4 → 4.2.11, markupsafe 3.0.3 → 3.0.4, numpy 2.5.4 → 2.5.5 and regex 2026.11.9 → 2026.11.15. Torch 2.15.0+cpu and GLiNER 0.2.30 are unchanged.

Compatibility change

Running the detector from source now requires Python 3.11 or later; it previously required 3.10. If you run the detector on Python 3.10, upgrade Python before updating. The Docker image is not affected; it runs Python 3.14. Python 3.10 reached end of life in October 2026, and Transformers 5.21 and later require Python 3.11.

Upgrade note

No configuration changes are needed. Upgrade the all-in-one image to ghcr.io/sgasser/pasteguard:0.9.9 or pull the updated latest image.

Full changelog: v0.9.8...v0.9.9

Don't miss a new pasteguard release

NewReleases is sending notifications on new releases.