build(security): update dependency flask to v3.1.3 [SECURITY] #201

Merged
renovate-bot merged 1 commits from renovate/pypi-flask-vulnerability into main 2026-02-23 07:16:26 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
flask (changelog) 3.1.23.1.3 age confidence

CVE-2026-27205 / GHSA-68rp-wp8r-4726

More information

Details

When the session object is accessed, Flask should set the Vary: Cookie header. This instructs caches not to cache the response, as it may contain information specific to a logged in user. This is handled in most cases, but some forms of access such as the Python in operator were overlooked.

The severity depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met.

  1. The application must be hosted behind a caching proxy that does not ignore responses with cookies.
  2. The application does not set a Cache-Control header to indicate that a page is private or should not be cached.
  3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session.

Severity

  • CVSS Score: Unknown
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

pallets/flask (flask)

v3.1.3

Compare Source

Released 2026-02-18

  • The session is marked as accessed for operations that only access the keys
    but not the values, such as in and len. :ghsa:68rp-wp8r-4726

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [flask](https://github.com/pallets/flask) ([changelog](https://flask.palletsprojects.com/page/changes/)) | `3.1.2` → `3.1.3` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/flask/3.1.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/flask/3.1.2/3.1.3?slim=true) | --- ### Flask session does not add `Vary: Cookie` header when accessed in some ways [CVE-2026-27205](https://nvd.nist.gov/vuln/detail/CVE-2026-27205) / [GHSA-68rp-wp8r-4726](https://github.com/advisories/GHSA-68rp-wp8r-4726) <details> <summary>More information</summary> #### Details When the `session` object is accessed, Flask should set the `Vary: Cookie` header. This instructs caches not to cache the response, as it may contain information specific to a logged in user. This is handled in most cases, but some forms of access such as the Python `in` operator were overlooked. The severity depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not ignore responses with cookies. 2. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. 3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session. #### Severity - CVSS Score: Unknown - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N` #### References - [https://github.com/pallets/flask/security/advisories/GHSA-68rp-wp8r-4726](https://github.com/pallets/flask/security/advisories/GHSA-68rp-wp8r-4726) - [https://github.com/pallets/flask/commit/089cb86dd22bff589a4eafb7ab8e42dc357623b4](https://github.com/pallets/flask/commit/089cb86dd22bff589a4eafb7ab8e42dc357623b4) - [https://github.com/pallets/flask](https://github.com/pallets/flask) - [https://github.com/pallets/flask/releases/tag/3.1.3](https://github.com/pallets/flask/releases/tag/3.1.3) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-68rp-wp8r-4726) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>pallets/flask (flask)</summary> ### [`v3.1.3`](https://github.com/pallets/flask/blob/HEAD/CHANGES.rst#Version-313) [Compare Source](https://github.com/pallets/flask/compare/3.1.2...3.1.3) Released 2026-02-18 - The session is marked as accessed for operations that only access the keys but not the values, such as `in` and `len`. :ghsa:`68rp-wp8r-4726` </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zMS4xIiwidXBkYXRlZEluVmVyIjoiNDMuMzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsic2VjdXJpdHkiXX0=-->
renovate-bot added the security label 2026-02-23 06:01:31 +00:00
renovate-bot added 1 commit 2026-02-23 06:01:31 +00:00
[SECURITY] Update dependency flask to v3.1.3 [SECURITY]
All checks were successful
Validate PR Title / validate (pull_request) Successful in 2s
CI / ci (pull_request) Successful in 23s
6a552f42ea
renovate-bot requested review from luke 2026-02-23 06:01:31 +00:00
renovate-bot scheduled this pull request to auto merge when all checks succeed 2026-02-23 06:01:32 +00:00
luke changed title from [SECURITY] Update dependency flask to v3.1.3 [SECURITY] to build(security): update dependency flask to v3.1.3 [SECURITY] 2026-02-23 07:15:38 +00:00
luke approved these changes 2026-02-23 07:16:23 +00:00
renovate-bot merged commit 7cd8e5814c into main 2026-02-23 07:16:26 +00:00
renovate-bot deleted branch renovate/pypi-flask-vulnerability 2026-02-23 07:16:26 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: repos/epage#201