T08 · Insecure Dependencies
- Location
references/html-guide.md:23- Finding
Unpinned Third-Party JavaScript Dependencies Without Integrity Verification
- Content
View full analysis
``` ### Technical Analysis The HTML-generation guidance instructs the agent to load executable JavaScript from third-party content delivery networks using URLs that do not specify immutable package versions. It also does not require Subresource Integrity (SRI) hashes. Paths such as `mermaid/dist/mermaid.min.js` and `echarts/dist/echarts.min.js` may resolve to different package releases over time. Consequently, the code executed by a generated report can change after the Skill has been reviewed. The Tailwind browser script is similarly loaded without integrity verification. This creates a supply-chain trust boundary in which the security of every generated HTML report depends on the CDN, its delivery infrastructure, package publisher accounts, and mutable upstream artifacts. If any of these are compromised, malicious JavaScript can be delivered when a user opens a report. ### Attack Path 1. A user invokes the Skill and requests optional HTML rendering. 2. The Skill generates an HTML report containing the documented CDN script references. 3. The generated report is opened in a browser while network access is available. 4. The browser retrieves executable JavaScript from the external CDN. 5. An attacker who has compromised an upstream package, publisher account, CDN distribution path, or mutable artifact causes malicious JavaScript to be returned. 6. The browser executes that JavaScript in the report's page context because neither an immutable ver ...[truncated 1266 chars]- Remediation
View remediation
