ajv 8.20.0
- Source
- https://github.com/ajv-validator/ajv
- Artifact scanned
ajv-8.20.0.tgz- Compared with
ajv-8.18.0.tgz(0 signals introduced since)- Files
- 321 scanned, 145 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 7 info
- Scan time
- 7.0 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 6 of 6 warn and critical signals; 6 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-23 13:48
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
-
// console.log("\n\n\n *** \n", sourceCode) const makeValidate = ; const validate = ; this..;likely benign Schema compiler in ajv that turns generated validation source into a callable validate function via new Function.Reasoning
This is the standard ajv schema compiler, which builds a validator by generating JavaScript source from a JSON schema and evaluating it with new Function. The body is generated code rather than attacker-supplied input, and the same pattern appears in the matching TypeScript source. It is a documented design choice of the library, so the flag is a true pattern match with a legitimate purpose.
-
sourceCode = `return `; const makeParse = ; const parse = ; this..;likely benign JTD parser builder that evaluates generated parse code with new Function.Reasoning
The JTD parser generator assembles parser source from schema-derived code and evaluates it with new Function. This is ajv's codegen for JSON Type Definition parsing, not a dropper or hidden payload. Nothing in the snippet fetches or decodes external data.
-
sourceCode = `return `; const makeSerialize = ; const serialize = ; this..;likely benign JTD serializer builder that evaluates generated serialization code with new Function.Reasoning
This is the JTD serializer counterpart of the parser codegen. It composes source from the schema and evaluates it with new Function, matching ajv's documented code generation approach. No obfuscation or network or process activity appears.
-
// console.log("\n\n\n *** \n", sourceCode) const makeValidate = const validate: AnyValidateFunction = this..likely benign TypeScript schema compiler in ajv that evaluates generated validator source with new Function.Reasoning
The TypeScript source of the ajv validator compiler, identical in logic to the compiled dist file. The Function call evaluates code generated from the schema, which is the library's intended behavior. The snippet shows no encoding, obfuscation, or external input being executed.
-
sourceCode = `return ` const makeParse = const parse: => unknown = this..likely benign TypeScript JTD parser builder that evaluates generated parse code with new Function.Reasoning
This is the TypeScript JTD parser generator. It builds parse source from the schema and evaluates it with new Function, a known ajv codegen technique. The code is typed and readable with no sign of hidden or malicious behavior.
-
sourceCode = `return ` const makeSerialize = const serialize: => string = this..likely benign TypeScript JTD serializer builder that evaluates generated serialization code with new Function.Reasoning
This is the TypeScript JTD serializer generator, using the same schema-driven codegen and new Function evaluation as the rest of ajv. The snippet is readable and consistent with a validation library, and it shows no suspicious behavior.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|
&&