
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@curvenote/connect
Advanced tools
Communicate with webpages in iframes that want to receive content to render
Include an iframe with the following attributes (examples here use React):
<iframe
id={uid}
name={uid}
title={title}
src={url}
height={height ?? 150}
sandbox="allow-scripts"
/>
The uid should be unqiue for each iframe, as there are potentially many on the host page.
It should also add the host.reducer as a slcice within it's Redux store:
import { host } from '@curvenote/connect';
const store = createStore(
combineReducers({
// other application reducers
host: host.reducer,
}),
applyMiddleware(thunkMiddleware),
);
and register a message listener, connected to the store:
host.registerMessageListener(store);
Communication actions can then be dispatched to the iframe using the host.commsDispatch
function.
import { host, actions } from '@curvenote/connect';
...
host.commsDispatch(
iframeRef.current,
actions.connectHostSendContent(uid, data)
);
iframe pageSimilarly the iframe.reducer should be added to the Redux store for the page
import { iframe } from '@curvenote/connect';
const store = createStore(iframe.reducer, applyMiddleware(thunkMiddleware));
And two listener/observer functions are registered:
iframe.registerMessageListener(
{
origin: 'http://localhost:3000',
},
store,
jsonRenderer,
);
iframe.registerResizeObserver(store, document);
FAQs
Communicate with iframes that want to render Jupyter outputs
We found that @curvenote/connect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.