shiny is vulnerable to Path Traversal
69
Medium Risk
Shiny for Python's bookmark restore joins a client supplied _state_id_ query parameter into the server-side bookmark directory without validating it, so a value with .. segments or an absolute path escapes the intended directory. The restore logic runs whenever a URL query string is present, even with bookmarking disabled, letting anyone probe for the existence and JSON validity of input.json and values.json at arbitrary paths, and apps combining bookmark_store="server" with ui.input_file() can have arbitrary file contents copied out through the same restore path. The fix validates _state_id_ against a [A-Za-z0-9_-]+ allowlist and only reads from disk when bookmark_store="server".
You are affected if you are using a version that falls within the vulnerable range.
shiny is vulnerable to Path Traversal in versions 1.4.0 - 1.6.3.
Upgrade the shiny library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.