Repository navigation
0.21.0: security - Gradio 6.30, dependency floors, launch hardening - #9
Merged
Merged
Conversation
- Gradio 6.30 (the <6 cap is removed); head= and css= are passed at launch() - Dependency floors raised past known CVEs: gradio, starlette, transformers, accelerate, pillow, python-dotenv, pytest - All launch() arguments are in app.LAUNCH_KWARGS: a Host check (TrustedHostMiddleware) against DNS rebinding, .env in blocked_paths, run_history off - Pillow decodes only PNG/JPEG/WebP/BMP/TIFF (drops EPS/Ghostscript, JPEG2000 and other decoders) - Fix: Gradio's SemiBold font subset drew "A" in a different font - Fix: Gradio 6 Textbox None default broke handlers (the 3 Caption prefix .strip()) - Fix: Quick build Finish and cli build ignored the saved Custom endpoint captioner - cli build checks --captioner and the custom endpoint before generating - Test suite no longer overwrites .cache/user_settings.json - New tests: test_launch_security, test_pillow_formats, test_gradio6_defaults, custom endpoint in build_finish - Version 0.21.0; AGENTS.md, ARCHITECTURE updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security release. Existing installs must re-run
setup.bat/./setup.shto pick up Gradio 6 and the new dependency floors.Security
<6cap is removed; the stuck loading overlay that caused it does not occur on 6.30.pip-audit -r requirements.txtnow reports only Pillow 12.3. Its CVEs are fixed in Pillow 13, which Gradio 6.30 does not allow yet (pillow<13).allowed_pathscovers every drive, so a hostile page could read local files, including.env. A Host allowlist (127.0.0.1,localhost) now rejects other hosts with 400..envis inblocked_paths. Gradio 6 run history (which stores every input and output) is off.Fixes found while testing
cli buildignored the saved Custom endpoint captioner and failed with "no endpoint URL" (since 0.20.0).cli buildnow checks the captioner before generating..strip())..cache/user_settings.json.Testing
pytest: 674 passed.ruff check .: clean.test_launch_security(Host check,.envblocked, bind and share settings),test_pillow_formats,test_gradio6_defaults, and a custom endpoint regression test forbuild_finish.