Skip to content

Commit

Permalink
Merge pull request #326 from Cray-HPE/CASMCMS-9020
Browse files Browse the repository at this point in the history
CASMCMS-9020: Bump Flask from 2.1.1 to 2.2.5 to resolve CVE
  • Loading branch information
mharding-hpe authored Jun 4, 2024
2 parents 2560126 + 5012b66 commit a71d637
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Dependencies
- Bumped `certifi` from 2022.12.7 to 2023.7.22 to resolve [SNYK-PYTHON-CERTIFI-5805047 CVE](https://security.snyk.io/vuln/SNYK-PYTHON-CERTIFI-5805047)
- Bumped `Flask` from 2.1.1 to 2.2.5 to resolve [SNYK-PYTHON-FLASK-5490129 CVE](https://snyk.io/vuln/SNYK-PYTHON-FLASK-5490129)

## [2.18.2] - 2024-05-31
### Fixed
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ COPY --from=codegen /app/lib/ /app/lib
# additional required libraries necessary for developer authored controller/database
# code.
RUN mv lib/requirements.txt lib/bos/server/requirements.txt
# The openapi-generator creates a requirements file that specifies exactly Flask==2.1.1
# However, using Flask 2.2.5 is also compatible, and resolves a CVE.
# Accordingly, we relax their requirements file.
RUN cat lib/bos/server/requirements.txt && \
sed -i 's/Flask == 2\(.*\)$/Flask >= 2\1\nFlask < 3/' lib/bos/server/requirements.txt && \
cat lib/bos/server/requirements.txt
# Then copy all src into the base image
COPY src/bos/ /app/lib/bos/
COPY constraints.txt requirements.txt /app/
Expand Down
2 changes: 1 addition & 1 deletion constraints.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ click==8.1.7
clickclick==20.10.2
connexion==2.14.2
etcd3==0.12.0
Flask==2.1.1
Flask==2.2.5
google-auth==2.16.3
grpcio==1.51.3
idna==3.4
Expand Down

0 comments on commit a71d637

Please sign in to comment.