T08 · Insecure Dependencies
- Location
SKILL.md:299- Finding
Generated Reports Execute Third-Party CDN Dependencies Without Integrity Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:299-301
Additional Location:references/reference_ui_template.html:7-9
Vulnerability Type: Unverified third-party runtime dependencies
Risk Level: MediumVulnerable code:
html <script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">Technical Analysis
The Skill requires generated HTML reports to load JavaScript and stylesheets directly from third-party content delivery networks. The Tailwind dependency is not pinned to an immutable version, and neither JavaScript dependency uses Subresource Integrity or another mechanism that verifies the downloaded content against a trusted cryptographic hash.
Because these resources are retrieved when a user opens a generated report, their effective content can change after the Skill package has been reviewed. A compromise of a CDN, upstream package, publishing account, or delivery path could cause attacker-controlled JavaScript to execute in the browser.
This is classified as
T08: Insecure Dependenciesbecause the report relies on externally hosted third-party components without integrity enforcement.Attack Path
- An attacker compromises an upstream dependency, CDN account, CDN delivery infrastructure, or another component capable of modifying a referenced JavaScript resource.
- The attacker replaces or alters the delivered Tailwind or ECharts script with malicious JavaScript.
- The Skill generates a report containing the mandated external script references.
- A user opens the generated HTML report while connected to the external CDN.
- The browser downloads and executes the modified script because no integrity hash or restrictive policy rejects it.
- The ...[truncated 1234 chars]
- Remediation
View remediation
Remediation Suggestions
- Bundle audited versions of Tailwind CSS and ECharts with the Skill or generated report instead of downloading executable resources at report-view time.
- If external hosting is unavoidable, use immutable, explicitly versioned asset URLs. Do not use the unversioned
https://cdn.tailwindcss.combrowser runtime in production reports. - Add Subresource Integrity hashes and anonymous cross-origin enforcement:
html <script src="https://trusted-cdn.example/library.min.js" integrity="sha384-EXPECTED_HASH" crossorigin="anonymous"></script> - Pin dependency versions and cryptographic hashes through a reviewed lockfile or asset manifest.
- Apply a restrictive Content Security Policy that permits scripts only from approved locations and avoids
unsafe-evalandunsafe-inlinewhere feasible. - Consider generating static CSS and charts so reports do not require third-party JavaScript at runtime.
- Establish a dependency-update process that includes vulnerability scanning, provenance verification, hash updates, and security review before deployment.
- Apply the same controls to both the directives in
SKILL.mdand the implementation inreferences/reference_ui_template.html.
