Skip to content

[Snyk] Security upgrade django from 3.1.12 to 5.0.14#58

Open
msant262 wants to merge 1 commit intomasterfrom
snyk-fix-539c8e28168be1eb071f24e93d21ee4c
Open

[Snyk] Security upgrade django from 3.1.12 to 5.0.14#58
msant262 wants to merge 1 commit intomasterfrom
snyk-fix-539c8e28168be1eb071f24e93d21ee4c

Conversation

@msant262
Copy link
Copy Markdown
Collaborator

@msant262 msant262 commented Apr 3, 2025

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • pygoat/requirements.txt
⚠️ Warning
Django 3.2.25 has requirement asgiref<4,>=3.3.2, but you have asgiref 3.2.7.
dj-database-url 2.3.0 has requirement Django>=4.2, but you have Django 3.2.25.

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.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

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:

🦉 Allocation of Resources Without Limits or Throttling

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-DJANGO-9634162
@PauloNova8
Copy link
Copy Markdown

PauloNova8 commented Apr 3, 2025

Logo
Checkmarx One – Scan Summary & Details1691100c-748b-47bf-83aa-3d01a8e2c9ad

New Issues (43)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
HIGH Missing User Instruction /Dockerfile: 1
detailsA user should be specified in the dockerfile, otherwise the image will run as root
HIGH Missing User Instruction /Dockerfile: 1
detailsA user should be specified in the dockerfile, otherwise the image will run as root
HIGH Passwords And Secrets - Generic Password /docker-compose.yml: 11
detailsQuery to find passwords and secrets in infrastructure code.
HIGH Passwords And Secrets - Generic Secret /teste_appscan.yml: 17
detailsQuery to find passwords and secrets in infrastructure code.
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 5
detailsWhen installing a package, its pin version should be defined
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 8
detailsWhen installing a package, its pin version should be defined
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 2
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 12
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 23
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 4
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
MEDIUM Container Capabilities Unrestricted /docker-compose.yml: 14
detailsSome capabilities are not needed in certain (or any) containers. Make sure that you only add capabilities that your container needs. Drop unnecessa...
MEDIUM Container Traffic Not Bound To Host Interface /docker-compose.yml: 16
detailsIncoming container traffic should be bound to a specific host interface
MEDIUM Container Traffic Not Bound To Host Interface /docker-compose.yml: 6
detailsIncoming container traffic should be bound to a specific host interface
MEDIUM Healthcheck Not Set /docker-compose.yml: 2
detailsCheck containers periodically to see if they are running properly.
MEDIUM Healthcheck Not Set /docker-compose.yml: 4
detailsCheck containers periodically to see if they are running properly.
MEDIUM Healthcheck Not Set /docker-compose.yml: 14
detailsCheck containers periodically to see if they are running properly.
MEDIUM Healthcheck Not Set /docker-compose.yml: 12
detailsCheck containers periodically to see if they are running properly.
MEDIUM Healthcheck Not Set /docker-compose.yml: 23
detailsCheck containers periodically to see if they are running properly.
MEDIUM Memory Not Limited /docker-compose.yml: 4
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
MEDIUM Memory Not Limited /docker-compose.yml: 12
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
MEDIUM Memory Not Limited /docker-compose.yml: 23
detailsMemory limits should be defined for each container. This prevents potential resource exhaustion by ensuring that containers consume not more than t...
MEDIUM Security Opt Not Set /docker-compose.yml: 12
detailsAttribute 'security_opt' should be defined.
MEDIUM Security Opt Not Set /docker-compose.yml: 14
detailsAttribute 'security_opt' should be defined.
MEDIUM Security Opt Not Set /docker-compose.yml: 23
detailsAttribute 'security_opt' should be defined.
MEDIUM Security Opt Not Set /docker-compose.yml: 2
detailsAttribute 'security_opt' should be defined.
MEDIUM Security Opt Not Set /docker-compose.yml: 4
detailsAttribute 'security_opt' should be defined.
MEDIUM Unpinned Package Version in Pip Install /Dockerfile: 20
detailsPackage version pinning reduces the range of versions that can be installed, reducing the chances of failure due to unanticipated changes
LOW Cpus Not Limited /docker-compose.yml: 12
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
LOW Cpus Not Limited /docker-compose.yml: 23
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
LOW Cpus Not Limited /docker-compose.yml: 4
detailsCPU limits should be set because if the system has CPU time free, a container is guaranteed to be allocated as much CPU as it requests
LOW Healthcheck Instruction Missing /Dockerfile: 1
detailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
LOW Healthcheck Instruction Missing /Dockerfile: 1
detailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 7
detailsMultiple commands (RUN, COPY, ADD) should be grouped in order to reduce the number of layers.
LOW Multiple RUN, ADD, COPY, Instructions Listed /Dockerfile: 9
detailsMultiple commands (RUN, COPY, ADD) should be grouped in order to reduce the number of layers.
LOW Pip install Keeping Cached Packages /Dockerfile: 23
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
LOW Pip install Keeping Cached Packages /Dockerfile: 20
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
LOW Pip install Keeping Cached Packages /Dockerfile: 9
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
LOW Pip install Keeping Cached Packages /Dockerfile: 14
detailsWhen installing packages with pip, the '--no-cache-dir' flag should be set to make Docker images smaller
LOW Unpinned Actions Full Length Commit SHA /main.yml: 13
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...
LOW Unpinned Actions Full Length Commit SHA /teste_appscan.yml: 14
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...
LOW Update Instruction Alone /Dockerfile: 8
detailsInstruction 'RUN update' should always be followed by ' install' in the same RUN statement
Fixed Issues (7)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
CRITICAL CVE-2024-53908 Python-Django-5.1.3
HIGH CVE-2024-53907 Python-Django-5.1.3
MEDIUM CVE-2024-56201 Python-Jinja2-3.1.4
MEDIUM CVE-2024-56326 Python-Jinja2-3.1.4
MEDIUM CVE-2024-56374 Python-Django-5.1.3
MEDIUM CVE-2025-26699 Python-Django-5.1.3
MEDIUM CVE-2025-27516 Python-Jinja2-3.1.4

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