
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).
fetch-beacon
Advanced tools
A tiny HTTP client that implements sendBeacon API
navigator.sendBeacon
, which is useful for analytics and diagnostics needs.WARN: You should not use it besides analytics and diagnostics needs
$ npm install fetch-beacon
import beacon from 'fetch-beacon';
(async () => {
const resp = await beacon('https://example.com', {json: {foo: true}});
console.log(resp.json());
//=> `{data: '🦄'}`
})();
Same as fetch, except folloing option.
fetch-beacon
will cache the failed request when get below status code or TimeoutError
and retry it when document load again.
Status codes: 408 413 429 500 502 503 504
Type: number
,
Default: 10000
Type: boolean
,
Default: true
#### options.retry
Type: number
,
Default: 2
Retry failed request if get one of following code.
The error thrown when the request times out.
FAQs
tiny HTTP client that implements sendBeacon API
The npm package fetch-beacon receives a total of 0 weekly downloads. As such, fetch-beacon popularity was classified as not popular.
We found that fetch-beacon 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
/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.