Summary
Togoder Security scanned the npm package ajv@8.20.0 on Nov 2, 2026. An AI review of 214 source files produced 8 medium severity findings. The overall verdict is medium: the findings flag risky but common patterns that the package's purpose explains (dynamic code, telemetry, native installers, broad file or network access), not malware.
Findings 8
What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.
Login to view
Login to view
Login to view
Login to view
Login to view
Login to view
Login to view
Login to view
Files reviewed
| File | Verdict | Result |
|---|---|---|
| dist/compile/index.js | medium | 1 finding |
| dist/compile/jtd/parse.js | medium | 1 finding |
| dist/compile/jtd/serialize.js | medium | 1 finding |
| dist/standalone/instance.js | medium | 1 finding |
| lib/compile/index.ts | medium | 1 finding |
| lib/compile/jtd/parse.ts | medium | 1 finding |
| lib/compile/jtd/serialize.ts | medium | 1 finding |
| lib/standalone/instance.ts | medium | 1 finding |
| .runkit_example.js | safe | Clear |
| dist/2019.js | safe | Clear |
| dist/2020.js | safe | Clear |
| dist/ajv.js | safe | Clear |
| dist/compile/codegen/code.js | safe | Clear |
| dist/compile/codegen/index.js | safe | Clear |
| dist/compile/codegen/scope.js | safe | Clear |
| dist/compile/errors.js | safe | Clear |
| dist/compile/jtd/types.js | safe | Clear |
| dist/compile/names.js | safe | Clear |
| dist/compile/ref_error.js | safe | Clear |
| dist/compile/resolve.js | safe | Clear |
| dist/compile/rules.js | safe | Clear |
| dist/compile/util.js | safe | Clear |
| dist/compile/validate/applicability.js | safe | Clear |
| dist/compile/validate/boolSchema.js | safe | Clear |
| dist/compile/validate/dataType.js | safe | Clear |
Show 189 more files
| File | Verdict | Result |
|---|---|---|
| dist/compile/validate/defaults.js | safe | Clear |
| dist/compile/validate/index.js | safe | Clear |
| dist/compile/validate/keyword.js | safe | Clear |
| dist/compile/validate/subschema.js | safe | Clear |
| dist/core.js | safe | Clear |
| dist/jtd.js | safe | Clear |
| dist/refs/json-schema-2019-09/index.js | safe | Clear |
| dist/refs/json-schema-2020-12/index.js | safe | Clear |
| dist/refs/jtd-schema.js | safe | Clear |
| dist/runtime/equal.js | safe | Clear |
| dist/runtime/parseJson.js | safe | Clear |
| dist/runtime/quote.js | safe | Clear |
| dist/runtime/re2.js | safe | Clear |
| dist/runtime/timestamp.js | safe | Clear |
| dist/runtime/ucs2length.js | safe | Clear |
| dist/runtime/uri.js | safe | Clear |
| dist/runtime/validation_error.js | safe | Clear |
| dist/standalone/index.js | safe | Clear |
| dist/types/index.js | safe | Clear |
| dist/types/json-schema.js | safe | Clear |
| dist/types/jtd-schema.js | safe | Clear |
| dist/vocabularies/applicator/additionalItems.js | safe | Clear |
| dist/vocabularies/applicator/additionalProperties.js | safe | Clear |
| dist/vocabularies/applicator/allOf.js | safe | Clear |
| dist/vocabularies/applicator/anyOf.js | safe | Clear |
| dist/vocabularies/applicator/contains.js | safe | Clear |
| dist/vocabularies/applicator/dependencies.js | safe | Clear |
| dist/vocabularies/applicator/dependentSchemas.js | safe | Clear |
| dist/vocabularies/applicator/if.js | safe | Clear |
| dist/vocabularies/applicator/index.js | safe | Clear |
| dist/vocabularies/applicator/items.js | safe | Clear |
| dist/vocabularies/applicator/items2020.js | safe | Clear |
| dist/vocabularies/applicator/not.js | safe | Clear |
| dist/vocabularies/applicator/oneOf.js | safe | Clear |
| dist/vocabularies/applicator/patternProperties.js | safe | Clear |
| dist/vocabularies/applicator/prefixItems.js | safe | Clear |
| dist/vocabularies/applicator/properties.js | safe | Clear |
| dist/vocabularies/applicator/propertyNames.js | safe | Clear |
| dist/vocabularies/applicator/thenElse.js | safe | Clear |
| dist/vocabularies/code.js | safe | Clear |
| dist/vocabularies/core/id.js | safe | Clear |
| dist/vocabularies/core/index.js | safe | Clear |
| dist/vocabularies/core/ref.js | safe | Clear |
| dist/vocabularies/discriminator/index.js | safe | Clear |
| dist/vocabularies/discriminator/types.js | safe | Clear |
| dist/vocabularies/draft2020.js | safe | Clear |
| dist/vocabularies/draft7.js | safe | Clear |
| dist/vocabularies/dynamic/dynamicAnchor.js | safe | Clear |
| dist/vocabularies/dynamic/dynamicRef.js | safe | Clear |
| dist/vocabularies/dynamic/index.js | safe | Clear |
| dist/vocabularies/dynamic/recursiveAnchor.js | safe | Clear |
| dist/vocabularies/dynamic/recursiveRef.js | safe | Clear |
| dist/vocabularies/errors.js | safe | Clear |
| dist/vocabularies/format/format.js | safe | Clear |
| dist/vocabularies/format/index.js | safe | Clear |
| dist/vocabularies/jtd/discriminator.js | safe | Clear |
| dist/vocabularies/jtd/elements.js | safe | Clear |
| dist/vocabularies/jtd/enum.js | safe | Clear |
| dist/vocabularies/jtd/error.js | safe | Clear |
| dist/vocabularies/jtd/index.js | safe | Clear |
| dist/vocabularies/jtd/metadata.js | safe | Clear |
| dist/vocabularies/jtd/nullable.js | safe | Clear |
| dist/vocabularies/jtd/optionalProperties.js | safe | Clear |
| dist/vocabularies/jtd/properties.js | safe | Clear |
| dist/vocabularies/jtd/ref.js | safe | Clear |
| dist/vocabularies/jtd/type.js | safe | Clear |
| dist/vocabularies/jtd/union.js | safe | Clear |
| dist/vocabularies/jtd/values.js | safe | Clear |
| dist/vocabularies/metadata.js | safe | Clear |
| dist/vocabularies/next.js | safe | Clear |
| dist/vocabularies/unevaluated/index.js | safe | Clear |
| dist/vocabularies/unevaluated/unevaluatedItems.js | safe | Clear |
| dist/vocabularies/unevaluated/unevaluatedProperties.js | safe | Clear |
| dist/vocabularies/validation/const.js | safe | Clear |
| dist/vocabularies/validation/dependentRequired.js | safe | Clear |
| dist/vocabularies/validation/enum.js | safe | Clear |
| dist/vocabularies/validation/index.js | safe | Clear |
| dist/vocabularies/validation/limitContains.js | safe | Clear |
| dist/vocabularies/validation/limitItems.js | safe | Clear |
| dist/vocabularies/validation/limitLength.js | safe | Clear |
| dist/vocabularies/validation/limitNumber.js | safe | Clear |
| dist/vocabularies/validation/limitProperties.js | safe | Clear |
| dist/vocabularies/validation/multipleOf.js | safe | Clear |
| dist/vocabularies/validation/pattern.js | safe | Clear |
| dist/vocabularies/validation/required.js | safe | Clear |
| dist/vocabularies/validation/uniqueItems.js | safe | Clear |
| lib/2019.ts | safe | Clear |
| lib/2020.ts | safe | Clear |
| lib/ajv.ts | safe | Clear |
| lib/compile/codegen/code.ts | safe | Clear |
| lib/compile/codegen/index.ts | safe | Clear |
| lib/compile/codegen/scope.ts | safe | Clear |
| lib/compile/errors.ts | safe | Clear |
| lib/compile/jtd/types.ts | safe | Clear |
| lib/compile/names.ts | safe | Clear |
| lib/compile/ref_error.ts | safe | Clear |
| lib/compile/resolve.ts | safe | Clear |
| lib/compile/rules.ts | safe | Clear |
| lib/compile/util.ts | safe | Clear |
| lib/compile/validate/applicability.ts | safe | Clear |
| lib/compile/validate/boolSchema.ts | safe | Clear |
| lib/compile/validate/dataType.ts | safe | Clear |
| lib/compile/validate/defaults.ts | safe | Clear |
| lib/compile/validate/index.ts | safe | Clear |
| lib/compile/validate/keyword.ts | safe | Clear |
| lib/compile/validate/subschema.ts | safe | Clear |
| lib/core.ts | safe | Clear |
| lib/jtd.ts | safe | Clear |
| lib/refs/json-schema-2019-09/index.ts | safe | Clear |
| lib/refs/json-schema-2020-12/index.ts | safe | Clear |
| lib/refs/jtd-schema.ts | safe | Clear |
| lib/runtime/equal.ts | safe | Clear |
| lib/runtime/parseJson.ts | safe | Clear |
| lib/runtime/quote.ts | safe | Clear |
| lib/runtime/re2.ts | safe | Clear |
| lib/runtime/timestamp.ts | safe | Clear |
| lib/runtime/ucs2length.ts | safe | Clear |
| lib/runtime/uri.ts | safe | Clear |
| lib/runtime/validation_error.ts | safe | Clear |
| lib/standalone/index.ts | safe | Clear |
| lib/types/index.ts | safe | Clear |
| lib/types/json-schema.ts | safe | Clear |
| lib/types/jtd-schema.ts | safe | Clear |
| lib/vocabularies/applicator/additionalItems.ts | safe | Clear |
| lib/vocabularies/applicator/additionalProperties.ts | safe | Clear |
| lib/vocabularies/applicator/allOf.ts | safe | Clear |
| lib/vocabularies/applicator/anyOf.ts | safe | Clear |
| lib/vocabularies/applicator/contains.ts | safe | Clear |
| lib/vocabularies/applicator/dependencies.ts | safe | Clear |
| lib/vocabularies/applicator/dependentSchemas.ts | safe | Clear |
| lib/vocabularies/applicator/if.ts | safe | Clear |
| lib/vocabularies/applicator/index.ts | safe | Clear |
| lib/vocabularies/applicator/items.ts | safe | Clear |
| lib/vocabularies/applicator/items2020.ts | safe | Clear |
| lib/vocabularies/applicator/not.ts | safe | Clear |
| lib/vocabularies/applicator/oneOf.ts | safe | Clear |
| lib/vocabularies/applicator/patternProperties.ts | safe | Clear |
| lib/vocabularies/applicator/prefixItems.ts | safe | Clear |
| lib/vocabularies/applicator/properties.ts | safe | Clear |
| lib/vocabularies/applicator/propertyNames.ts | safe | Clear |
| lib/vocabularies/applicator/thenElse.ts | safe | Clear |
| lib/vocabularies/code.ts | safe | Clear |
| lib/vocabularies/core/id.ts | safe | Clear |
| lib/vocabularies/core/index.ts | safe | Clear |
| lib/vocabularies/core/ref.ts | safe | Clear |
| lib/vocabularies/discriminator/index.ts | safe | Clear |
| lib/vocabularies/discriminator/types.ts | safe | Clear |
| lib/vocabularies/draft2020.ts | safe | Clear |
| lib/vocabularies/draft7.ts | safe | Clear |
| lib/vocabularies/dynamic/dynamicAnchor.ts | safe | Clear |
| lib/vocabularies/dynamic/dynamicRef.ts | safe | Clear |
| lib/vocabularies/dynamic/index.ts | safe | Clear |
| lib/vocabularies/dynamic/recursiveAnchor.ts | safe | Clear |
| lib/vocabularies/dynamic/recursiveRef.ts | safe | Clear |
| lib/vocabularies/errors.ts | safe | Clear |
| lib/vocabularies/format/format.ts | safe | Clear |
| lib/vocabularies/format/index.ts | safe | Clear |
| lib/vocabularies/jtd/discriminator.ts | safe | Clear |
| lib/vocabularies/jtd/elements.ts | safe | Clear |
| lib/vocabularies/jtd/enum.ts | safe | Clear |
| lib/vocabularies/jtd/error.ts | safe | Clear |
| lib/vocabularies/jtd/index.ts | safe | Clear |
| lib/vocabularies/jtd/metadata.ts | safe | Clear |
| lib/vocabularies/jtd/nullable.ts | safe | Clear |
| lib/vocabularies/jtd/optionalProperties.ts | safe | Clear |
| lib/vocabularies/jtd/properties.ts | safe | Clear |
| lib/vocabularies/jtd/ref.ts | safe | Clear |
| lib/vocabularies/jtd/type.ts | safe | Clear |
| lib/vocabularies/jtd/union.ts | safe | Clear |
| lib/vocabularies/jtd/values.ts | safe | Clear |
| lib/vocabularies/metadata.ts | safe | Clear |
| lib/vocabularies/next.ts | safe | Clear |
| lib/vocabularies/unevaluated/index.ts | safe | Clear |
| lib/vocabularies/unevaluated/unevaluatedItems.ts | safe | Clear |
| lib/vocabularies/unevaluated/unevaluatedProperties.ts | safe | Clear |
| lib/vocabularies/validation/const.ts | safe | Clear |
| lib/vocabularies/validation/dependentRequired.ts | safe | Clear |
| lib/vocabularies/validation/enum.ts | safe | Clear |
| lib/vocabularies/validation/index.ts | safe | Clear |
| lib/vocabularies/validation/limitContains.ts | safe | Clear |
| lib/vocabularies/validation/limitItems.ts | safe | Clear |
| lib/vocabularies/validation/limitLength.ts | safe | Clear |
| lib/vocabularies/validation/limitNumber.ts | safe | Clear |
| lib/vocabularies/validation/limitProperties.ts | safe | Clear |
| lib/vocabularies/validation/multipleOf.ts | safe | Clear |
| lib/vocabularies/validation/pattern.ts | safe | Clear |
| lib/vocabularies/validation/required.ts | safe | Clear |
| lib/vocabularies/validation/uniqueItems.ts | safe | Clear |
| package.json | safe | Clear |
Affected version ranges
None of the 2 scanned versions of ajv are flagged high or critical. The latest scanned version, 8.20.0, is medium risk. Only versions we have scanned are listed; unscanned versions between them are not covered.
| Versions | Verdict | Count | Range | Top findings |
|---|---|---|---|---|
| 8.20.0 | Needs review | 1 | 8.20.0 | Login to view |
| 8.11.0 โ 8.17.1 | Not scanned | 2 | >=8.11.0 <=8.17.1 | |
| 6.15.0 | Needs review | 1 | 6.15.0 | Login to view |
| 6.12.6 | Not scanned | 1 | 6.12.6 |
Full list, including published versions not scanned yet: version ranges API.
Scanned versions of ajv
Frequently asked questions
Is ajv safe to use?
No confirmed malware was found in ajv@8.20.0, but the review flagged 8 medium severity findings for risky patterns worth checking before you rely on it.
Does ajv contain malware?
No malware was identified in ajv@8.20.0 when Togoder Security scanned it on Nov 2, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.
How was ajv checked?
Togoder Security downloaded the published npm package and had an AI model read its 214 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.
How do I scan ajv together with the rest of my dependencies?
Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in ajv@8.20.0, cost nothing.