[Arvion] Security remediation: Update SQLAlchemy to 2.0.43 and other project dependencies #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automated Security Remediation
📂 Files Modified
setup.pyinstall_requiresas per the migration plan, includingrequests,PyYAML,Flask,Jinja2,SQLAlchemy,urllib3, andWerkzeug. Thepython_requireswas also changed from Python 2.7 to>=3.8to support the new versions of these libraries, particularly Flask and Werkzeug.app/database.pydeclarative_baseAPI was replaced with the modernDeclarativeBasesuperclass andMappedannotations for model definitions. A raw SQL query was wrapped withtext()as required by the newexecute()behavior. Additionally, due to the project-wide Python version update to 3.8+, minor compatibility changes were made, such as renaming the__unicode__method to__str__and replacing a reference to the non-existentunicodetype withstr.🔄 Migrations Performed
requests 2.5.3 → 2.32.5
🔒 Vulnerabilities Fixed:
Sessionobject does not verify requests after making first request with verify=FalseNo breaking changes were applied for this dependency.
pyyaml 3.12 → 6.0.3
🔒 Vulnerabilities Fixed:
No breaking changes were applied for this dependency.
flask 0.12.2 → 3.1.2
🔒 Vulnerabilities Fixed:
No breaking changes were applied for this dependency.
jinja2 2.8 → 3.1.6
🔒 Vulnerabilities Fixed:
No breaking changes were applied for this dependency.
sqlalchemy 1.0.0 → 2.0.43
🔒 Vulnerabilities Fixed:
Symbol:
sqlalchemy.ext.declarative.declarative_basesqlalchemy.ext.declarative.declarative_basefunction has been removed. The new declarative mapping API, usingDeclarativeBaseand type annotations withMapped, should be used instead.Symbol:
sqlalchemy.create_engineexecute()method now requires SQL strings to be explicitly wrapped usingsqlalchemy.text(). This is a consequence of SQLAlchemy 2.0+ defaulting tofuture=Truemode.urllib3 1.20 → 2.5.0
🔒 Vulnerabilities Fixed:
CookieHTTP header isn't stripped on cross-origin redirectsNo breaking changes were applied for this dependency.
werkzeug 0.11 → 3.1.3
🔒 Vulnerabilities Fixed:
No breaking changes were applied for this dependency.
🛠️ Additional Notes
📢 This PR was generated by Arvion's automated remediation system to enhance your repository's security while maintaining stability. 🚀