
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
cross-iframe-and-window
Advanced tools
a cross-origin message framework cross iframe and window(such as brower tab), with window.postMessage.
a cross-origin message framework cross iframe and window(such as brower tab), with window.postMessage.
import Cross from "cross-iframe-and-window"
const cross = new Cross({
key: "child",
isBase: true,
parentOrigin: "*",
timeout: 3000
});
cross
.connect({
key: "base",
id: "child1"
})
.catch(() => {
// 错误处理
// 1. 超时
// a. 对方无响应
// b. origin 不匹配
// 2. target 不存在或不合理
// 3. connect 时注册重复
});
cross.dispatch("sayHello", { nihao: 123 }, "child2").catch();
cross.disconnect("child2").catch(() => {
// 1. target 不存在
// 2. 超时
});
页面初始化的某个过程中,代码中 window.parent !== window,但是获取的 window.parent 为 window。:(
但是实际上并不会触发回调以至于引起其他的问题。
FAQs
a cross-origin message framework cross iframe and window(such as brower tab), with window.postMessage.
We found that cross-iframe-and-window demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.