
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Streamlit component that allows you to bookmark chat messages in your apps
Here is a Streamlit component that allows you to bookmark chat messages in your apps, for later reference or anything else. The code is based on streamlit-feedback by Trubrics
pip install streamlit-bookmark
This component holds a single function:
from streamlit_bookmark import streamlit_bookmark
bookmark_state = streamlit_bookmark(on_submit=some_callback_function,
key=SOME_COMPONENT_KEY,
disable_component=True)
bookmark_state
# ===> {'bookmark': True}
Could be used with these parameters:
def streamlit_bookmark(
on_submit=None,
disable_component=None,
key=None,
):
"""Creates a new instance of "streamlit_bookmark". Receives the current bookmark status for a given Streamlit compnent and calls a function upon submission.
Parameters
----------
on_submit: callable
An optional callback invoked when feedback is submitted. This function must accept at least one argument, the feedback response dict,
allowing you to save the feedback to a database for example. Additional arguments can be specified using `args` and `kwargs`.
disable_component: str
An optional boolean to disable the component. Can be used to pass state from one component to another.
key: str or None
An optional key that uniquely identifies this component. If this is
None, and the component's arguments are changed, the component will
be re-mounted in the Streamlit frontend and lose its current state.
Returns
-------
dict
The user response
"""
For the code example, see here.
FAQs
Streamlit component that allows you to bookmark chat messages in your apps
We found that streamlit-bookmark demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.