npm / @babel/generator / 8.0.6
@babel/generator 8.0.6
- Source
- https://github.com/babel/babel
- Tag scanned
v8.0.6- Directory
packages/babel-generator- Compared with
v8.0.5(0 signals introduced since)- Files
- 1152 scanned, 148 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 62 info
- Scan time
- 8.0 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 7 of 7 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 14:51
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/comments/dynamic-import/input.js:1:6/*0*//*4*/likely benign Comment-laden dynamic import("foo") in a parser test fixture.Reasoning
The snippet is a dynamic import whose specifier is the string literal "foo", with comments between the tokens. It sits in a parser fixture named for comment handling, so the flag comes from the scanner's own test input rather than from a real loader. The literal specifier makes the non-literal message a false positive.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/comments/dynamic-import/output.js:1:6/*0*/; /*4*/likely benign Formatted expected output of a dynamic import("foo") fixture with comments.Reasoning
This is the formatted output counterpart of the comment-handling fixture. It contains import("foo") with a literal string specifier and interleaved comments, which is expected output for a formatter test. Nothing here is a non-literal specifier or an evasion attempt.
-
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/async-generator/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/async-generator/output.js:1:1 -
"undefined" === typeof Aura && ; Aura. || ; Aura. || -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/new-precedence/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/edgecase/new-precedence/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/def-site-variance/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/def-site-variance/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/enum-declaration/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/enum-declaration/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/qualified-generic-type/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/qualified-generic-type/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/type-union-intersection/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/flow/type-union-intersection/output.js:1:1 -
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-comments/input.js:1:8/* 0 */./* 2 *//* 3 */likely benign Test fixture for source-phase import.source("foo") with comments.Reasoning
This is an import-phases fixture exercising the source-phase syntax import.source(...) with comments in between. The specifier is the literal "foo". The finding is a parser-coverage artifact of the test corpus, not code that runs.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-comments/output.js:1:8/* 0 */. /* 7 */;likely benign Expected formatted output for an import.source("foo") comment fixture.Reasoning
This is the expected formatted output for the source-phase import comment fixture. It uses the literal specifier "foo" and has no sensitive behavior.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-options-comments/input.js:1:8/* 0 */./* 2 *//* 3 */likely benign Test fixture for import.source("foo", options) with comments.Reasoning
This fixture covers the source-phase import with an options argument and comments. The specifier is the literal "foo", and the options object is a plain identifier in a test input. It is a parser test, not a loader of attacker-controlled modules.
-
info
warn→ info by reviewdynamic-importpackages/babel-generator/test/fixtures/import-phases/source-expression-options-comments/output.js:1:8/* 0 */. /* 9 */;likely benign Expected formatted output for an import.source("foo", options) comment fixture.Reasoning
This is the formatted expected output of the options-plus-comments source-phase import fixture. It contains only the literal "foo" specifier and an options identifier, with no dynamic or malicious behavior.
-
"😂"; "\uD83D_\uDE02" `😂`; /foobar/g; -
"😂"; "\uD83D_\uDE02" `😂`; /foobar/g; -
5;5;50;5e4;"foobar";" ";"\n\r";"😂";"\uD83D_\uDE02"`😂`;/foobar/g;null;true;false;5;2;56;31; -
5;5;50;5e4;"foobar";" ";"\n\r";"😂";"\uD83D_\uDE02"`😂`;/foobar/g;null;true;false;5;2;56;31; -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/exponentiation/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/exponentiation/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/in-inside-for/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/in-inside-for/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/new-callee/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/new-callee/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/nullish-coalescing/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/nullish-coalescing/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/sequence-expressions/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/sequence-expressions/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-function-type/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-function-type/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-new-callee/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/parentheses/ts-new-callee/output.js:1:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/regression/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/regression/comment-before-parentheses-return-arg/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js:2:1 -
info
whitespace-anomalypackages/babel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg/input.js:2:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/types/LogicalExpression/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/types/LogicalExpression/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/cast-need-parentheses/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/cast-need-parentheses/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/satisfies-parentheses/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/satisfies-parentheses/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-mapped-as/input.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-mapped-as/output.js:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-parameter-const-modifier/input.ts:1:1 -
info
identifier-low-lengthpackages/babel-generator/test/fixtures/typescript/types-parameter-const-modifier/output.js:1:1 -
); ; });likely benign Test harness constructing a Function from code generated by the tool's own generator.Reasoning
The file is the scanner's own test suite. The flagged new Function(generate(mem).code) most likely appears in a test harness that evaluates code produced by the tool's own generator, checking that output is valid or behaves correctly. The source is local and generated, not attacker-supplied. Some doubt remains because the pattern is a real dynamic-execution sink, and only the snippet is visible.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&