Skip to content

fix(marketplace): pin toastr with SRI in index template (CWE-830) - #989

Merged
Eyal-Danieli merged 1 commit into
mlrun:developmentfrom
Eyal-Danieli:ci/fix-html
Aug 17, 2026
Merged

fix(marketplace): pin toastr with SRI in index template (CWE-830)#989
Eyal-Danieli merged 1 commit into
mlrun:developmentfrom
Eyal-Danieli:ci/fix-html

Conversation

@Eyal-Danieli

Copy link
Copy Markdown
Member

Resolves the recurring CodeQL "Inclusion of functionality from an untrusted source"
(CWE-830) alert on the generated marketplace index.html.

The landing-page template loaded toastr from cdnjs at /latest/ with no integrity
check, so a compromised/spoofed CDN response could inject arbitrary code into the
Function Hub page.

Change: pin toastr to 2.1.4 and add subresource integrity + crossorigin on both the
JS and CSS tags. The other CDN resources (jQuery, bootstrap, highlight.js, etc.)
are already SRI-protected.

Once merged, the existing force-rebuild CI regenerates the marketplace pages and the
open alert is cleared.

@Eyal-Danieli
Eyal-Danieli merged commit e8a6db3 into mlrun:development Aug 17, 2026
3 checks passed
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