
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@br-validators/zod
Advanced tools
Zod schemas for Brazilian document validators — delegates to @br-validators/core
Zod schemas that delegate to @br-validators/core v1.10.0 validate* functions — same golden vectors, same error messages.
pnpm add @br-validators/zod @br-validators/core zod
Peer dependency: zod ^3.23.0 || ^4.0.0
import { z } from 'zod';
import { cpfSchema, telefoneSchema } from '@br-validators/zod';
const formSchema = z.object({
cpf: cpfSchema,
telefone: telefoneSchema,
});
formSchema.parse({
cpf: '123.456.789-09',
telefone: '(11) 99999-9999',
});
| Schema | Output |
|---|---|
cpfSchema | canonical string |
cnpjSchema | canonical string |
cepSchema | canonical string |
telefoneSchema | { value, tipo } |
placaSchema | { value, format } |
pisPasepSchema / pisSchema | canonical string |
pixKeySchema | { value, keyType } |
boletoSchema | { value, inputKind, situacao } |
cartaoCreditoSchema | { value, brand } |
createInscricaoEstadualSchema({ uf }) | { value, uf } |
Subpath imports mirror core: @br-validators/zod/cpf, etc.
MIT
FAQs
Zod schemas for Brazilian document validators — delegates to @br-validators/core
The npm package @br-validators/zod receives a total of 1,360 weekly downloads. As such, @br-validators/zod popularity was classified as popular.
We found that @br-validators/zod 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
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.