
Security News
November CVEs Fell 25% YoY, Driven by Slowdowns at Major CNAs
November CVE publications fell 25% YoY even as 2025 totals rose, showing how a few major CNAs can swing “global” counts and skew perceived risk.
@trendyol-js/safe-redirect
Advanced tools
safe-redirect is a library which resolves open-redirection vulnerability when we need to make client-side redirection to a path taken from query string.
For example, we have /login page and after successful login we need to redirect user to a path. Referrer can state the redirection path using callback query string parameter. Url looks like:
https://domain.com/login?callback=/payment
In /login page, after successful login, we implement the aforementioned requirement in this way:
// successful login
const path = new URLSearchParams(window.location.search).get("callback");
window.location.assign(path);
And here we have a open-redirection vulnerability
https://fake.com can redirect user to domain.com/login?callback=https://fake.com/fake , after successful login, the user will be redirected to https://fake.com/fake.
A site can redirect user to domain.com/login?callback=javascript:alert(document.cookie) and execute custom javascript code. (sensitive user data can be stolen, etc).
safe-redirect library solves this vulnerability. Simply:
npm i @trendyol-js/safe-redirect
import { redirect } from "@trendyol-js/safe-redirect";
// successful login
redirect("callback"); // give name of the query parameter
FAQs
Resolves open-redirection issue
The npm package @trendyol-js/safe-redirect receives a total of 387 weekly downloads. As such, @trendyol-js/safe-redirect popularity was classified as not popular.
We found that @trendyol-js/safe-redirect 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.

Security News
November CVE publications fell 25% YoY even as 2025 totals rose, showing how a few major CNAs can swing “global” counts and skew perceived risk.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.