Skip to content

[Snyk] Fix for 1 vulnerabilities#42

Open
EmanFAs wants to merge 1 commit intomainfrom
snyk-fix-9232b578a6237e63d89b5d2736b1a231
Open

[Snyk] Fix for 1 vulnerabilities#42
EmanFAs wants to merge 1 commit intomainfrom
snyk-fix-9232b578a6237e63d89b5d2736b1a231

Conversation

@EmanFAs
Copy link
Copy Markdown
Owner

@EmanFAs EmanFAs commented Jan 14, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • todolist-goof/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue Score Upgrade
high severity Missing XML Validation
SNYK-JAVA-ORGAPACHESTRUTS-14915536
  116   org.apache.struts:struts2-core:
2.3.20 -> 6.1.1
org.apache.struts:struts2-spring-plugin:
2.3.20 -> 6.1.1
Major version upgrade No Path Found No Known Exploit

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Jan 14, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@EmanFAs
Copy link
Copy Markdown
Owner Author

EmanFAs commented Jan 14, 2026

Merge Risk: High

This is a major upgrade from Struts 2.3 to 6.1, which includes multiple significant breaking changes. This is not a drop-in replacement and will require a multi-step migration and substantial code and configuration updates.

Key Breaking Changes:

  • Java & Servlet API: Requires Java 8+ (from Java 7 in 2.5) and Servlet API 3.1+ [1, 3, 11].
  • Core APIs & Packages: Many classes and constants from com.opensymphony.xwork2 have been moved or replaced by org.apache.struts2 equivalents. The web.xml filter class has also changed [1, 5].
  • Tag Libraries: The id attribute is replaced by var in many tags, and the <s:div> tag is removed. JSP and Freemarker templates will need to be updated [4, 5].
  • Security & OGNL: Access to static methods via OGNL is now disabled by default, and expression length is limited [1, 3].

Source: Struts Migration Guides
Recommendation: This upgrade cannot be merged directly. A dedicated migration plan is required, following the official guides for moving from 2.3 → 2.5 and then 2.5 → 6.x.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Jan 16, 2026

Merge Risk: High

This is a massive upgrade from Struts 2.3 (released in 2011 and End-of-Life since 2019) to Struts 6.1, which introduces multiple layers of significant breaking changes. This is a major migration effort that requires significant code and configuration updates.

Key Breaking Changes:

  • Environment Upgrade: Requires Java 8+ (from Java 7) and Servlet API 3.1+ (from 2.4).
  • Security Hardening (OGNL): Access to static methods from OGNL expressions is now forbidden. Code like @my.Class@myStaticMethod() must be refactored to use action methods.
  • Core API & Configuration:
    • Many classes from com.opensymphony.xwork2 have moved to org.apache.struts2 packages, requiring import changes.
    • The struts.xml DTD must be updated to the struts-6.0.dtd.
    • Logging has moved from Log4j to Log4j2, requiring a new configuration.
  • Spring Plugin: The struts2-spring-plugin upgrade will require a compatible, modern version of the Spring Framework (Struts 6.1.1 uses Spring 5.3+).

Source: Apache Struts Migration Guide
Recommendation: This upgrade cannot be handled as a simple version bump. It requires a dedicated migration project involving significant code refactoring and thorough testing.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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.

2 participants