@antv/g2 @5.5.8
Maintainers
Keywords
Dependencies (12)
| Package | Constraint | Registry Status |
|---|---|---|
| flru | ^1.0.2 | auto_approved |
| pdfast | ^0.2.0 | auto_approved |
| @antv/g | ^6.1.24 | auto_approved |
| @antv/expr | ^1.0.2 | auto_approved |
| @antv/util | ^3.3.10 | auto_approved |
| @antv/coord | ^0.4.7 | auto_approved |
| @antv/scale | ^0.5.1 | auto_approved |
| @antv/vendor | ^1.0.11 | auto_approved |
| @antv/g-canvas | ^2.0.43 | auto_approved |
| @antv/component | ^2.1.9 | auto_approved |
| @antv/event-emitter | ^0.1.3 | auto_approved |
| @antv/g-plugin-dragndrop | ^2.0.35 | auto_approved |
Dev Dependencies (49)
| Package | Constraint | Registry Status |
|---|---|---|
| svgo | ^3.3.2 | auto_approved |
| vite | ^4.5.14 | No greenflagged match |
| fecha | ^4.2.3 | auto_approved |
| husky | ^7.0.4 | auto_approved |
| jsdom | ^20 | auto_approved |
| tslib | ^2.8.1 | auto_approved |
| eslint | ^7.32.0 | auto_approved |
| rimraf | ^3.0.2 | auto_approved |
| rollup | ^2.79.2 | auto_approved |
| vitest | ^3.1.4 | No greenflagged match |
| prettier | ^2.8.8 | auto_approved |
| cross-env | ^7.0.3 | auto_approved |
| limit-size | ^0.1.4 | Not imported |
| pixelmatch | 5.3.0 | auto_approved |
| typescript | ^5.0.0 | auto_approved |
| @antv/g-svg | ^2.0.38 | auto_approved |
| @types/diff | ^5.2.3 | auto_approved |
| lint-staged | ^10.5.4 | auto_approved |
| npm-run-all | ^4.1.5 | auto_approved |
| @antv/g-webgl | ^2.0.47 | Not imported |
| xmlserializer | ^0.6.1 | auto_approved |
| @antv/data-set | ^0.11.8 | auto_approved |
| @antv/g-pattern | ^2.0.35 | Not imported |
| @commitlint/cli | ^11.0.0 | No greenflagged match |
| topojson-client | ^3.1.0 | auto_approved |
| @antv/translator | ^1.0.1 | Not imported |
| @antv/g-plugin-3d | ^2.0.45 | Not imported |
| @types/pixelmatch | ^5.2.6 | Not imported |
| @rollup/plugin-json | ^6.1.0 | auto_approved |
| eslint-plugin-import | ^2.31.0 | auto_approved |
| @antv/g2-extension-3d | ^0.1.6 | Not imported |
| @rollup/plugin-terser | ^0.4.4 | auto_approved |
| @antv/g-plugin-control | ^2.0.34 | Not imported |
| @antv/g2-extension-ava | ^0.1.1 | Not imported |
| @types/topojson-client | ^3.1.5 | auto_approved |
| @antv/g2-extension-plot | ^0.1.2 | No greenflagged match |
| @rollup/plugin-commonjs | ^21.1.0 | auto_approved |
| rollup-plugin-visualizer | ^5.14.0 | auto_approved |
| @typescript-eslint/parser | ^4.33.0 | auto_approved |
| @vitest/coverage-istanbul | ^3.1.4 | No greenflagged match |
| rollup-plugin-typescript2 | ^0.35.0 | auto_approved |
| conventional-changelog-cli | ^2.2.2 | auto_approved |
| @rollup/plugin-node-resolve | ^15.3.1 | auto_approved |
| rollup-plugin-polyfill-node | ^0.8.0 | No greenflagged match |
| @optimize-lodash/rollup-plugin | ^4.0.4 | No greenflagged match |
| @commitlint/config-conventional | ^17.8.1 | No greenflagged match |
| @typescript-eslint/eslint-plugin | ^4.33.0 | auto_approved |
| @antv/g-plugin-rough-svg-renderer | ^2.0.38 | Not imported |
| @antv/g-plugin-rough-canvas-renderer | ^2.0.42 | auto_approved |
Transitive Dependency Tree
Changes from v5.4.8
Dependency Changes
Script Changes
+ preinstallFile Changes
Risk Dispositions (3 applicable to this version, 0 other)
Accepted rules are downgraded to INFO on future analyses; rejected rules escalate to CRITICAL.
| Rule | Source | Disposition | Author | Reason | |
|---|---|---|---|---|---|
install-script:preinstall |
install-scripts | reject | AI | AI (install-scripts): Malicious preinstall running obfuscated index.js; not part of legitimate @antv/g2 build. | |
obfuscated-file:index.js |
source-diff | reject | AI | AI (source-diff): 498KB javascript-obfuscator output with env-spread; payload of supply-chain attack. | |
url-dep:@antv/setup |
npm-metadata | reject | AI | AI (npm-metadata): SHA-pinned GitHub dep in optionalDependencies is attack infrastructure. |
SAST Findings (11)
Script: bun run index.js
Dependency '@antv/setup' in `optionalDependencies` points to 'github:antvis/G2#1916faa365f2788b6e193514872d51a242876569' instead of a registry version. URL dependencies bypass the registry and can be swapped at any time. A 40-character commit SHA in a dependency URL is a strong supply-chain signal — the 2026-05-11 TanStack/Mini Shai-Hulud attack used this exact shape in `optionalDependencies` to smuggle a malicious payload past lifecycle-script and OSV checks.
This version has no gitHead field linking it to a source commit, but previous versions did. This suggests the publish environment changed. Published by: atool.
This version was published by a different npm account than previous versions on 2026-05-19. This could indicate a legitimate maintainer transition or an account compromise.
Newly added source file contains lines over 3000 chars, suggesting minified or obfuscated code. New obfuscated files are a strong attack indicator.
while(!![]) loop is a signature of javascript-obfuscator output > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Spreading entire process.env into an object — may capture all secrets > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Hex-prefixed function names (_0x...) are generated by javascript-obfuscator > 1 | const _0x5d6bea=_0x1169;(function(_0x3187cf,_0x895a8e){const _0x5f2282={_0x2bb395:0x3eb,_0x56f5b5:0x6c1,_0x24d254:0x85d,
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
Review Summary
Risk score: 100 (capped from 273). Findings: 10 high (+250), 2 medium (+20), 1 low (+3).
Published to npm: