Skip to content

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Aug 25, 2025

Resolves #9175

When saving a PDF, there is a comment that mentions what Pillow version is being used.

existing_pdf.write_comment(f"created by Pillow {__version__} PDF driver")

This PR removes the version from the string. I don't think it's necessary, and may conceivably help an attacker - if software using Pillow generates PDFs, then an attacker could determine what Pillow version is being used, and they might learn that it is an outdated version with known vulnerabilities.

@radarhere radarhere changed the title Removed version from PDF comment Removed Pillow version from PDF comment Aug 26, 2025
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.

Make PDF output reproducible
1 participant