Skip to content

[Snyk] Security upgrade nginx from 1.27.0-alpine to 1.29.2-alpine#43

Open
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-4e140a4be9aab6dd39e34dd318df19b4
Open

[Snyk] Security upgrade nginx from 1.27.0-alpine to 1.29.2-alpine#43
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-4e140a4be9aab6dd39e34dd318df19b4

Conversation

@MManke188
Copy link
Copy Markdown
Collaborator

snyk-top-banner

Snyk has created this PR to fix 4 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • docker/frontend/Dockerfile

We recommend upgrading to nginx:1.29.2-alpine, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Integer Overflow or Wraparound
SNYK-ALPINE319-EXPAT-7908400
  714  
critical severity Integer Overflow or Wraparound
SNYK-ALPINE319-EXPAT-7908409
  714  
high severity CVE-2024-6197
SNYK-ALPINE319-CURL-7567383
  614  
high severity CVE-2024-6197
SNYK-ALPINE319-CURL-7567383
  614  
high severity XML External Entity (XXE) Injection
SNYK-ALPINE319-EXPAT-7908399
  614  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 XML External Entity (XXE) Injection

Copilot AI review requested due to automatic review settings October 11, 2025 08:36
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

Security upgrade of the frontend runtime image to address Snyk-flagged vulnerabilities by updating the Nginx base image.

  • Update base image from nginx:1.27.0-alpine to nginx:1.29.2-alpine
  • Retain existing multi-stage build structure and runtime setup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

RUN npm run build

FROM nginx:1.27.0-alpine
FROM nginx:1.29.2-alpine
Copy link

Copilot AI Oct 11, 2025

Choose a reason for hiding this comment

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

Consider pinning the image by digest to avoid supply-chain drift and ensure reproducible builds. Example: FROM nginx:1.29.2-alpine@sha256: (you can get the digest via docker pull and docker inspect or buildx imagetools).

Suggested change
FROM nginx:1.29.2-alpine
FROM nginx:1.29.2-alpine@sha256:2e2e7e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e

Copilot uses AI. Check for mistakes.
RUN npm run build

FROM nginx:1.27.0-alpine
FROM nginx:1.29.2-alpine
Copy link

Copilot AI Oct 11, 2025

Choose a reason for hiding this comment

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

[nitpick] To control the underlying Alpine version and reduce unexpected changes from tag retargeting, consider using an OS-specific tag, e.g., nginx:1.29.2-alpine3.20 (or your chosen Alpine release). This makes upgrades explicit and improves build determinism.

Suggested change
FROM nginx:1.29.2-alpine
FROM nginx:1.29.2-alpine3.20

Copilot uses AI. Check for mistakes.
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.

3 participants