MessagePack.AspNetCoreMvcFormatter is vulnerable to Initialization of a Resource with an Insecure Default
63
CVE Score
Medium
Initialization of a Resource with an Insecure Default
The parameterless MessagePackInputFormatter constructor defaults to MessagePackSerializerOptions.Standard with MessagePackSecurity.TrustedData even though it binds HTTP request bodies. Untrusted clients can therefore deserialize request models without the hash-collision and depth mitigations intended for untrusted data. The fix defaults the parameterless constructor to MessagePackSecurity.UntrustedData.
Upgrade the MessagePack.AspNetCoreMvcFormatter library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and register the parameterless MessagePackInputFormatter without explicit untrusted-data serializer options.
0.0.1 - 2.5.300
Fixed in 2.5.3013.0.0 - 3.1.6
Fixed in 3.1.7MessagePack.AspNetCoreMvcFormatter is vulnerable to Initialization of a Resource with an Insecure Default in versions 0.0.1 - 2.5.300 and 3.0.0 - 3.1.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.