Bump net.sourceforge.pmd:pmd-java from 7.20.0 to 7.22.0 by dependabot[bot] · Pull Request #3257 · allure-framework/allure2
Bumps net.sourceforge.pmd:pmd-java from 7.20.0 to 7.22.0.
Release notes
Sourced from net.sourceforge.pmd:pmd-java's releases.
PMD 7.22.0 (27-February-2026)
27-February-2026 - 7.22.0
The PMD team is pleased to announce PMD 7.22.0.
This is a minor release.
Table Of Contents
- 🚀️ New and noteworthy
- 🌟️ New and Changed Rules
- 🐛️ Fixed Issues
- 🚨️ API Changes
- ✨️ Merged pull requests
- 📦️ Dependency updates
- 📈️ Stats
🚀️ New and noteworthy
Security fixes
- This release fixes a stored XSS vulnerability in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages.
Affects CI/CD pipelines that run PMD with--format vbhtmlor--format yahtmlon untrusted source code (e.g. pull requests from external contributors) and expose the HTML report as a build artifact. JavaScript executes in the browser context of anyone who opens the report.
Note: The defaulthtmlformat is not affected by unescaped violation messages, but a similar problem existed with suppressed violation markers.
If you use these reports, it is recommended to upgrade PMD.
Reported by Smaran Chand (@smaranchand).🌟️ New and Changed Rules
New Rules
- The new Java rule
UnnecessaryInterfaceDeclarationdetects classes that implement interfaces that are already implemented by its superclass, and interfaces that extend other interfaces already declared by their superinterfaces.
These declarations are redundant and can be removed to simplify the code.Changed Rules
- The rule
CloseResourceintroduces a new property,allowedResourceMethodPatterns, which lets you specify method invocation patterns whose return values are resources managed externally. This is useful for ignoring managed resources - for example,Reader/Writerinstances obtained fromHttpServletRequest/HttpServletResponse- because the servlet container, not application code, is responsible for closing them. By default, the rule ignoresInputStream/OutputStream/Reader/Writerresources returned by methods on(Http)ServletRequestand(Http)ServletResponse
... (truncated)
Commits
7f74d77[release] prepare release pmd_releases/7.22.01d1d51dPrepare pmd release 7.22.0f150d3dUpdate security.md (refs #6475)5523b33Update contributors for 7.22.0c140c0e[core] Fix stored XSS in VBHTMLRenderer and YAHTMLRenderer (#6475)96598aa[core] Fix stored XSS in VBHTMLRenderer and YAHTMLRenderer0f84b4dchore(deps): bump faraday from 2.13.3 to 2.14.1 (#6474)0304cfcchore(deps): bump nokogiri to 1.19.1 (#6473)5d5f969[core] Fix BaseAntlrTerminalNode getTokenKind to return type instead of index...41e6b68[doc] Update release notes (#6471, #6472)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)