Skip to content

fix: External CDN dependency injection risk#35

Open
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/external-cdn-dependency-inject
Open

fix: External CDN dependency injection risk#35
mrwind-up-bird wants to merge 1 commit intomainfrom
autofix/dd2853cd/external-cdn-dependency-inject

Conversation

@mrwind-up-bird
Copy link
Copy Markdown
Collaborator

AutoFix: External CDN dependency injection risk

Category: security
Severity: medium

Issue

The application loads multiple JavaScript libraries from external CDNs without integrity checks. If these CDNs are compromised, malicious code could be injected into the application.

Fix

Added Subresource Integrity (SRI) hashes and crossorigin='anonymous' attributes to all external CDN script tags to prevent code injection attacks if the CDNs are compromised. The integrity hashes ensure that only the expected content is loaded, and crossorigin enables CORS for integrity checking.


Generated by nyxCore AutoFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant