github Kanaries/pygwalker v0.5.0.3
0.5.0.3

48 minutes ago

Security & Hardening

This patch release hardens SQL execution and HTTP communication endpoints across PyGWalker's local web server and web framework integrations:

  • Isolated DuckDB execution: DataFrame kernel queries now run on per-parser isolated in-memory DuckDB connections with external file/extension access disabled and temp_directory unset. (Because temporary disk spilling is disabled, very large in-memory aggregations must fit in memory.)
  • Read-only SQL validation: Queries executed across DataFrame, database Connector, and Spark parsers are validated as single read-only queries restricted to the active dataset view.
  • Hardened HTTP communication:
    • The local web server (pyg.walk() outside Jupyter) now requires a per-session URL token (http://localhost:<port>/?token=...) exchanged for an HttpOnly; SameSite=Strict session cookie, validates Host/Origin, requires application/json with a custom request header, and no longer serves files from disk.
    • Streamlit, Gradio, and Reflex communication endpoints now require application/json and the custom request header, disable open_in_desktop, bound the comm registry, and sanitize unexpected server error messages.
    • Server-parsed data sources (Connector, cloud datasets) no longer expose raw-SQL endpoints.
  • Security Policy: Added SECURITY.md with private vulnerability reporting instructions and deployment guidance.

Upgrade Notes

  • Upgrade with pip install -U pygwalker and restart any running PyGWalker-backed web applications (Streamlit, Gradio, Reflex, marimo).
  • Always configure database Connector with a read-only, least-privilege account scoped only to the tables/views intended for visualization.

Don't miss a new pygwalker release

NewReleases is sending notifications on new releases.