Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

docs(security): record the Pillow 12.3.0 position on Python 3.10 (#2095)

Kevinf4ab38c43168
diff --git a/SECURITY.md b/SECURITY.md
index b4d5bc30..a40912b9 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -230,6 +230,40 @@ We use automated tools to scan for vulnerabilities:
- **GitHub Security Advisories**: Vulnerability tracking
- **Manual Reviews**: Regular security audits
+### Accepted advisories
+
+Some dependency advisories cannot be fixed from inside this repository. Each
+one is recorded here with what it affects and when to revisit it, and its IDs
+are accepted in `osv-scanner.toml`.
+
+#### Pillow 12.3.0 on Python 3.10
+
+Pillow 13.0.0 fixes 28 advisories against 12.3.0, 19 of which also appear as
+Dependabot alerts: buffer overflows in the TIFF and JPEG decoders, unbounded
+recursion over the PDF page tree, and an argument injection in the Ghostscript
+call. Pillow 13 requires Python 3.11 or newer,
+while Semantica still declares `requires-python = ">=3.10,<3.14"`, so `uv.lock`
+keeps a 12.3.0 resolution for `python_full_version < '3.11'`.
+
+- **Scope**: Python 3.10 installs only. Every requirements file that pins
+ pillow has it at 13.0.0, which carries no advisories.
+- **Exposure**: `ImageParser` passes caller-supplied bytes to
+ `PIL.Image.open()`, so parsing untrusted images on 3.10 reaches the affected
+ decoders. Text, JSON and document parsing are unaffected, and so are images
+ the application produces itself.
+- **Mitigation**: none within 12.x, because no patched 12.x exists. Running on
+ Python 3.11 or newer installs Pillow 13.
+- **Cost of dropping 3.10**, measured on 2026-10-23: `uv.lock` loses 1,585
+ lines, 12 packages drop their 3.10-only variant, and five disappear entirely
+ (`backports-asyncio-runner`, `coloredlogs`, `exceptiongroup`,
+ `humanfriendly`, `pyreadline3`). No package changes version on 3.11+. Beyond
+ the lock it is `requires-python`, one classifier, the Install Matrix, the
+ README badge, and about eleven lines of documentation.
+- **Downloads on 3.10**: 9.9% (5,403 of 54,434) between 2026-09-18 and
+ 2026-10-22, from pypistats `python_minor`.
+- **Revisit**: Python 3.10 reaches end of life on 2026-10-31, and the 28 IDs in
+ `osv-scanner.toml` are accepted until 2027-01-21. Tracked in #2067.
+
## Best Practices for Users
1. **Keep Semantica Updated**: Always use the latest stable version