Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-COMMONSIO-8161190
MrEasy
pushed a commit
that referenced
this pull request
Sep 16, 2026
* fix(management): apply the JMX RBAC guard to MBean lifecycle operations The KarafMBeanServerGuard only intercepted invoke, getAttribute(s) and setAttribute(s). createMBean, registerMBean and unregisterMBean went straight to the delegate MBeanServer, so they were not subject to any role check and behaved inconsistently with the rest of the guarded API. Route these three operations through the guard as well: * MBeanInvocationHandler adds them to the guarded operation list. * KarafMBeanServerGuard resolves the required roles from the jmx.acl* configuration by ObjectName and operation name (the target MBean is not, or not yet, registered so no MBeanInfo introspection is done). For createMBean/registerMBean the class name is passed as the operation argument so ACL rules can match on it, e.g. createMBean(java.lang.String)[/javax\.management\.loading\..*/] = admin * A null ObjectName falls back to the generic jmx.acl configuration. * The default jmx.acl.cfg maps createMBean/registerMBean/unregisterMBean to the admin role (the existing "* = admin" already covered them). * Fix Javadoc comment prematurely terminated by regex example The ACL regex example in the handleRegistration Javadoc contained the literal sequence */ (from \..*/]), which closed the block comment early and broke compilation of org.apache.karaf.management.server. Escape the trailing slash as / so the comment terminates where intended. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017MZQYyrYzSQHdHeD6AEGXT --------- Co-authored-by: Jean-Baptiste Onofré <jbonofre@MacBookAir.local> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):
pom.xmlVulnerabilities that will be fixed with an upgrade:
SNYK-JAVA-COMMONSIO-8161190
3.2.0->3.5.3No Known ExploitImportant
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:
🦉 Uncontrolled Resource Consumption