MessagePack.AspNetCoreMvcFormatter is vulnerable to Initialization of a Resource with an Insecure Default
63
Medium Risk
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.
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.
MessagePack.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.
Upgrade the MessagePack.AspNetCoreMvcFormatter library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant