
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@standard-community/standard-openapi
Advanced tools
[](https://npmjs.org/package/@standard-community/standard-openapi "View this project on NPM") [,
myUnion: v.union([v.number(), v.boolean()]),
}),
v.description("My neat object schema"),
);
// Convert it to OpenAPI Schema
const openapiSchema = await toOpenAPISchema(schema);
import { toOpenAPISchema, loadVendor } from "@standard-community/standard-openapi";
import { convertSchemaToJson } from "your-validation-lib";
// The lib should support Standard Schema, like Sury
// as we use 'schema["~standard"].vendor' to get the vendor name
// Eg. loadVendor(zod["~standard"].vendor, convertorFunction)
loadVendor("validation-lib-name", convertSchemaToJson)
// Define your validation schema
const schema = {
// ...
};
// Convert it to OpenAPI Schema
const openapiSchema = toOpenAPISchema(schema);
import { z } from "zod/v4";
import { toJSONSchema } from "zod/v4/core";
import { toOpenAPISchema, loadVendor } from "@standard-community/standard-openapi";
import { convertToOpenAPISchema } from "@standard-community/standard-openapi/convert";
// Or pass a custom implmentation
loadVendor("zod", (schema, context) => {
return convertToOpenAPISchema(toJSONSchema(schema, {
io: "input"
}), context);
})
// Define your schema
const schema = z.object({
myString: z.string(),
myUnion: z.union([z.number(), z.boolean()]),
}),
// Convert it to OpenAPI Schema
const openapiSchema = await toOpenAPISchema(schema);
FAQs
[](https://npmjs.org/package/@standard-community/standard-openapi "View this project on NPM") [
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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.