design-sync
Warn
Audited by Socket on Oct 7, 2026
1 alert found:
AnomalyAnomalylib/story-imports.mjs
LOWAnomalyLOW
lib/story-imports.mjs
The code is a powerful esbuild supply-chain/build-time manipulation mechanism: it rewrites module resolution and injects generated JavaScript shims. The most security-sensitive behavior is the ds-raw loader emitting `module.exports=window.${GLOBAL}`, which hardwires runtime browser global access into bundle output. No overt exfiltration or system compromise is shown in this snippet, but the broad dependency-graph rewriting and code-generation capability mean this module should be reviewed carefully for how GLOBAL/shimFor/shimResult/exportedComponentFor are derived and whether configuration/inputs could be attacker-influenced.
Confidence: 52%Severity: 58%
Audit Metadata