Skip to content

Conversation

bpsoraggi
Copy link

@bpsoraggi bpsoraggi commented Aug 4, 2025

Cf. https://github.com/traefik/infra/issues/8953

It also flags google fonts, but SRI is not supported

Hash generated here or by running:

curl -s https://traefik.github.io/traefiklabs-header-app/main-v1.js | openssl dgst -sha384 -binary | openssl base64 -A 

Hash will be updated with every publish, see this PR

@bpsoraggi bpsoraggi requested review from Copilot and mloiseleur and removed request for Copilot August 4, 2025 12:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a security vulnerability by adding Subresource Integrity (SRI) protection to an external JavaScript file. The change adds integrity and crossorigin attributes to a script tag loading from traefik.github.io to ensure the script hasn't been tampered with.

  • Adds SRI hash verification for the traefiklabs-header-app script
  • Includes crossorigin attribute to enable SRI validation for cross-origin resources

@bpsoraggi
Copy link
Author

Closing this for now

@bpsoraggi bpsoraggi closed this Oct 7, 2025
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