Deserialization of Untrusted Data in org.jboss.resteasy:resteasy-yaml-providerGHSA-m2fv-3rqm-g7p5
HIGHFix: resteasy/resteasy#1555GHSA-m2fv-3rqm-g7p5 is a high-severity (CVSS 8.1) Improper Input Validation vulnerability in org.jboss.resteasy:resteasy-yaml-provider. A fix is available for org.jboss.resteasy:resteasy-yaml-provider — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.jboss.resteasy:resteasy-yaml-provider☕org.jboss.resteasy:resteasy-yaml-providerReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
It was found that the fix for CVE-2016-9606 in versions 3.0.22 and 3.1.2 was incomplete and Yaml unmarshalling in Resteasy is still possible via Yaml.load() in YamlProvider.
Mitigation:
If the YamlProvider is enabled it's recommended to add authentication, and authorization to the endpoint expecting Yaml content to prevent exploitation of this vulnerability.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jboss.resteasy:resteasy-yaml-provider | all versions | 3.0.26.Finalorg.jboss.resteasy:resteasy-yaml-provider:3.0.26.Final |
| ☕Maven | org.jboss.resteasy:resteasy-yaml-provider | ≥ 3.1.0&&< 3.6.0.Final | 3.6.0.Finalorg.jboss.resteasy:resteasy-yaml-provider:3.6.0.Final |
Affected Products
resteasyredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jboss.resteasy:resteasy-yaml-provider, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jboss.resteasy:resteasy-yaml-provider to 3.0.26.Final or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-m2fv-3rqm-g7p5 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This issue only affects applications which have the YamlProvider explicitly enabled by adding or appending a file with the name 'META-INF/services/javax.ws.rs.ext.Providers' to your WAR, or JAR with the contents 'org.jboss.resteasy.plugins.providers.YamlProvider' resteasy-base as shipped in Red Hat Enterprise Linux 7…
If the YamlProvider is enabled it's recommended to add authentication, and authorization to the endpoint expecting Yaml content to prevent exploitation of this vulnerability.Source: Red Hat security advisory for GHSA-m2fv-3rqm-g7p5 (CC BY 4.0)
Frequently Asked Questions
Is GHSA-m2fv-3rqm-g7p5 in your dependencies?
Find it across Maven, including transitive dependencies.