
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@ark/json-schema
Advanced tools
`@ark/json-schema` is a package that allows converting from a JSON Schema schema to an ArkType Type. For example:
@ark/json-schema is a package that allows converting from a JSON Schema schema to an ArkType Type. For example:
import { jsonSchemaToType } from "@ark/json-schema"
const T = jsonSchemaToType({ type: "string", minLength: 5, maxLength: 10 })
is equivalent to:
import { type } from "arktype"
const T = type("5<=string<=10")
This enables easy adoption of ArkType for people who currently have JSON Schema based runtime validation in their codebase.
If you want to convert your existing ArkType Types to JSON Schema, you don't need this library.
Instead, use the built-in toJsonSchema() method that exists on every Type, e.g.:
import { type } from "arktype"
// { type: "string", minLength: 5, maxLength: 10 }
const schema = type("5<=string<=10").toJsonSchema()
If you wish to ensure that your JSON Schema schemas are valid, you can do this too! Simply import the relevant Schema type from @ark/json-schema like so:
import type { JsonSchema } from "arktype"
const integerSchema: JsonSchema.Numeric = {
type: "integer",
multipleOf: "3" // errors stating that 'multipleOf' must be a number
}
Note that for string schemas exclusively, you must import the schema type from @ark/json-schema instead of arktype. This is because @ark/json-schema doesn't yet support the format keyword whilst arktype does.
import type { StringSchema } from "@ark/json-schema"
const stringSchema: StringSchema = {
type: "string",
minLength: "3" // errors stating that 'minLength' must be a number
}
dependencies supportif/else/then supportmultipleOf only supports integersFAQs
`@ark/json-schema` is a package that allows converting from a JSON Schema schema to an ArkType Type. For example:
The npm package @ark/json-schema receives a total of 6,164 weekly downloads. As such, @ark/json-schema popularity was classified as popular.
We found that @ark/json-schema demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.