baoyu-design

Fail

Audited by Socket on Sep 23, 2026

6 alerts found:

Anomalyx3Securityx2Malware
AnomalyLOW
starter-components/data-overlay.js

No explicit malware indicators (crypto-mining, credential theft, exfiltration beacons) are evident in the shown fragment. However, the component can execute arbitrary remote JavaScript when src is not a .json endpoint by injecting a <script> tag into document.head—this is a major supply-chain/code-execution risk. Additionally, it relies on extensive innerHTML/SVG rendering from remote and user-influenced data (sanitization depends on unseen helpers), and it uses postMessage with targetOrigin '*', increasing exposure to the embedding context. High-priority review/lockdown of src trust (allowlisting origins/paths, disallow script execution) and verification of escaping/sanitization behavior is recommended.

Confidence: 66%Severity: 68%
AnomalyLOW
agents/build-preview.mjs

The package's build-preview component executes attacker-controlled JavaScript in both build-time and runtime contexts by evaluating code via new Function and inline handlers, and may download and evaluate babel-standalone from an external CDN without integrity verification, enabling arbitrary code execution if inputs or CDN artifacts are compromised.

Confidence: 74%Severity: 72%
SecurityMEDIUM
agents/gen-pptx/vendor/pptxgenjs/src/gen-media.ts

No clear evidence of intentional malware, backdoor logic, or heavy obfuscation in this module. However, it performs high-impact operations based directly on rel.path: arbitrary local file reads in Node (fs.readFileSync) and arbitrary network fetches in Node and browser (https.get / XMLHttpRequest) without robust validation or allowlisting. If an attacker can influence layout._relsMedia[*].path, this can enable local file disclosure and SSRF-style data access, and it also processes untrusted image/SVG content into canvas data URLs. This is a substantial security risk driven by unvalidated dynamic resource loading rather than by overt malicious code.

Confidence: 66%Severity: 78%
SecurityMEDIUM
agents/gen-pptx/src/browser/capture-screenshot.ts

The critical security concern is arbitrary JavaScript execution: spec.showJs is executed verbatim using new Function(spec.showJs)() with no sandboxing or validation. If an attacker can influence the SlideSpec (directly, via user input, or through compromised configuration/supply-chain), this becomes a high-impact RCE vector within the runtime. The remainder of the code only performs timing/animation synchronization and can be abused for delayed/slow behavior via spec.delay, but it does not show direct exfiltration or destructive actions in this fragment.

Confidence: 75%Severity: 82%
AnomalyLOW
agents/compile-design-system.mjs

No clear in-module indicators of classic malware (e.g., exfiltration, reverse shells, or direct credential theft) are present. However, the build pipeline has a significant supply-chain/code-execution risk: it executes a local vendored babel.min.js at build time and then embeds/transforms the entire project source tree into a browser-executed bundle that mutates window.${namespace}. If the vendored Babel or the input project sources are compromised, malicious logic is likely to be carried into the produced _ds_bundle.js. Namespace interpolation and regex-based import scanning introduce reliability/integration risks, but the primary threat is build-time and artifact integrity.

Confidence: 62%Severity: 56%
MalwareHIGH
agents/gen-pptx/src/browser/capture-editable.ts

The module is primarily a DOM capture/serialization utility, but it contains a high-severity arbitrary JavaScript execution vulnerability: it executes caller-supplied `spec.showJs` via `new Function(spec.showJs)()`. If `spec.showJs` can be influenced by an attacker (directly or indirectly), this enables full script execution in the client context and is consistent with intentional “run arbitrary code” behavior. Additional concerns include extracting sensitive pixel data from same-origin canvases (toDataURL) and serializing/propagating attacker-controlled URLs from the DOM into the returned capture structure.

Confidence: 86%Severity: 86%
Audit Metadata
Analyzed At
Sep 23, 2026, 11:52 AM
Package URL
pkg:socket/skills-sh/jimliu%2Fbaoyu-design%2Fbaoyu-design%2F@de1b4de12cab147a5e64132208856c839f4746bacbae5a822d726b604dab5fbd