Skip to content

phaser.min.js: Inclusion of functionality from an untrusted source #398#399

Closed
BaseMax wants to merge 9 commits intoNextCommunity:mainfrom
MaxFork:max-updates-js-link
Closed

phaser.min.js: Inclusion of functionality from an untrusted source #398#399
BaseMax wants to merge 9 commits intoNextCommunity:mainfrom
MaxFork:max-updates-js-link

Conversation

@BaseMax
Copy link
Copy Markdown
Member

@BaseMax BaseMax commented Apr 3, 2026

No description provided.

@BaseMax BaseMax requested a review from jbampton as a code owner April 3, 2026 10:09
@jbampton jbampton self-assigned this Apr 3, 2026
@jbampton jbampton added this to Next Apr 3, 2026
@jbampton jbampton added this to the Hackfest milestone Apr 3, 2026
@github-project-automation github-project-automation bot moved this to In progress in Next Apr 3, 2026
@jbampton jbampton moved this from In progress to Review in progress in Next Apr 3, 2026
@jbampton jbampton requested a review from Copilot April 3, 2026 10:11
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Phaser library script tag in src/index.njk to include Subresource Integrity (SRI) attributes. A critical issue was identified regarding the version number 3.90.0, which appears to be invalid on cdnjs and will likely result in a 404 error and script failure.

Copy link
Copy Markdown

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

Adds Subresource Integrity (SRI) metadata to the Phaser CDN script include on the main index page to mitigate risk from loading third‑party JS.

Changes:

  • Add integrity and crossorigin="anonymous" attributes to the Phaser <script> tag in src/index.njk.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

src/index.njk Outdated
<title>Developer Directory</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.90.0/phaser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.90.0/phaser.min.js" integrity="sha384-AvQiDMZAVLda3VtAoU5MCfBz8pzXhteb2CiUJeKBmPlWzpXj1uJ96Km11+YuFNu/" crossorigin="anonymous"></script>
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

This adds SRI for Phaser on the index page, but Phaser is still loaded from the same CDN without an integrity/crossorigin attribute in src/_includes/bio.njk (line 8). If the goal of this PR is to address untrusted third‑party script inclusion, the same mitigation needs to be applied consistently anywhere Phaser is included; otherwise the issue remains for profile/bio pages.

Copilot uses AI. Check for mistakes.
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 3, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedesbuild@​0.21.591997395100
Addednpm-run-all@​4.1.5991009875100
Addedpostcss-cli@​11.0.19910010082100
Addedpostcss@​8.5.8991008286100
Addedphaser@​3.90.0901001008480
Addedautoprefixer@​10.4.27991008987100
Added@​tailwindcss/​postcss@​4.2.210010010097100

View full report

@BaseMax BaseMax closed this Apr 3, 2026
@github-project-automation github-project-automation bot moved this from Review in progress to Done in Next Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants