Skip to content

[Snyk] Fix for 1 vulnerabilities#22

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

[Snyk] Fix for 1 vulnerabilities#22
DavidThomas-coder wants to merge 1 commit intomainfrom
snyk-fix-9232b578a6237e63d89b5d2736b1a231

Conversation

@DavidThomas-coder
Copy link
Copy Markdown
Owner

@DavidThomas-coder DavidThomas-coder commented Jan 20, 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
  555   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.


Note

Dependency upgrade

  • Updates struts2.version from 2.3.20 to 6.1.1 in todolist-goof/pom.xml.

Written by Cursor Bugbot for commit 8670f21. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on February 25

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

<hibernate.version>4.3.7.Final</hibernate.version>
<tapestry.version>5.3.8</tapestry.version>
<struts2.version>2.3.20</struts2.version>
<struts2.version>6.1.1</struts2.version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major version upgrade breaks compilation and runtime

High Severity

The Struts upgrade from 2.3.20 to 6.1.1 is a breaking major version change that will cause compilation and runtime failures. The codebase imports com.opensymphony.xwork2.* classes (e.g., ActionSupport, ActionContext, Preparable) which were migrated to org.apache.struts2.* in Struts 6.x. Multiple action classes depend on these packages. Additionally, the project targets Java 1.7 but Struts 6.x requires Java 8 minimum. The struts.xml also references the outdated struts-2.0.dtd DTD.

Fix in Cursor Fix in Web

<hibernate.version>4.3.7.Final</hibernate.version>
<tapestry.version>5.3.8</tapestry.version>
<struts2.version>2.3.20</struts2.version>
<struts2.version>6.1.1</struts2.version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Struts filter class path changed in version 6

High Severity

The version upgrade causes the Struts filter configuration in web.xml to fail. The web.xml references org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter, but Struts 6.x moved this class to org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter (removed the .ng. package segment). This will cause a ClassNotFoundException at application startup, preventing deployment.

Fix in Cursor Fix in Web

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