Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@highpoint/js-fetch
Advanced tools
This is a small library to make using JavaScript's fetch
a bit easier. It
provides some utility functions to handle common request types.
The library assumes that responses will be in JSON format. If a response is not going to be in that format, then you can still use the library, but most of its usefulness will be gone.
Also included are some HighPoint-specific requirements like CSRF support and
postMessage
s to parent
informing it that the user is actively using child
.
yarn add @highpoint/js-fetch
GET request
import { json } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await json('https://api.example.com');
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
POST Form
import { postForm } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await postForm('https://api.example.com', {
body: 'value1=1&value2=2'
});
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
POST JSON
import { postJSON } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await postJSON('https://api.example.com', {
body: JSON.stringify({
value1: 1,
value2: 2
})
});
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
FAQs
HighPoint Fetch Library
The npm package @highpoint/js-fetch receives a total of 0 weekly downloads. As such, @highpoint/js-fetch popularity was classified as not popular.
We found that @highpoint/js-fetch 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.