T08 · Insecure Dependencies
- Location
SKILL.md:536- Finding
Unpinned Third-Party Polyfill Permits Mutable Remote Code Execution
- Content
View full analysis
``` ### Technical Analysis The Skill recommends loading executable JavaScript from a third-party service without an immutable version, Subresource Integrity hash, or locally controlled fallback. The returned resource can change after the generated application has been reviewed or deployed. A cross-origin script included through a `script` element executes within the embedding document's JavaScript context rather than within an isolated third-party origin. Consequently, a compromised or malicious remote response could interact with the page DOM, read JavaScript-accessible application data, monitor user input, and issue requests using the user's active browser session. Although this is documentation rather than code automatically executed when the Skill loads, an agent following the recommendation could introduce the unsafe dependency into generated applications. ### Attack Path 1. An agent follows the Skill's recommendation and includes the unpinned Polyfill.io URL in an application. 2. A browser visits the generated application and requests the script from the third-party service. 3. The service, its DNS/CDN infrastructure, or the delivered resource is compromised or unexpectedly modified. 4. The third-party response supplies attacker-controlled JavaScript. 5. The browser executes that JavaScript in the embedding page's context. 6. The payload accesses page data or performs authenticated browser actions within the limits of the page origin, browser security model, and deployed CSP. ### Impact Assessment Successfu ...[truncated 425 chars]- Remediation
View remediation
