
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@nextvalid/zod-request
Advanced tools
[](https://www.npmjs.com/package/@nextvalid/zod-request) [.email("Invalid email").optional(),
},
headers: {
// authorization: z.string().regex(/^bearer /i),
},
});
const getHandler: NextApiHandler = async (req, res) => {
const { query, headers } = schema.parse(req);
const { email } = query; // email is typed to `string | undefined`
res.json({
email: email ? `Your email is ${email}` : `No email provided`,
});
};
export default withApiErrorHandler({
logger: new ConsoleLogger(),
})(getHandler);
getServerSideProps, getStaticProps
Open an issue.
Contributions are warmly appreciated. Have a look to the CONTRIBUTING document.
If you are enjoying some of my OSS guides or libs for your company, I'd really appreciate a sponsorship, a coffee or a dropped star. That gives me a tasty morning boost and help me to make some of my ideas come true 🙏
MIT
FAQs
[](https://www.npmjs.com/package/@nextvalid/zod-request) [
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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

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