# GHSA-92vj-hp7m-gwcj: Nerdbank.MessagePack has Inefficient CPU Computation

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-29T20:02:59.000Z
- Modified: 2026-05-29T20:15:14.889Z
- Weaknesses: CWE-1176

## Description

### Impact

Applications that call `OptionalConverters.WithExpandoObjectConverter` and deserialize untrusted data are open to a vulnerability by which an attacker can exploit a `O(n²)` algorithm to burn an inordinate amount of CPU effort by adding a great many properties to an `ExpandoObject`, whose `Add` method is implemented as an `O(n)` algorithm.

### Patches

Update to a patched version.

If a project's `ExpandoObject` data requires more than 128 properties, the default limit should be changed:

```cs
this.Serializer = this.Serializer with
{
	StartingContext = this.Serializer.StartingContext with
	{
		Security = this.Serializer.StartingContext.Security with
		{
			ExpandoObjectMaxPropertyCount = 256, // Set this to whatever limit is required by your application
		},
	},
};
```

### Workarounds

Avoid the non-default `WithExpandoObjectConverter` extension method when deserializing untrusted data.
If deserializing untrusted data into an `ExpandoObject` is required, developers should write a custom converter for their project that limits the number of properties allowed before initializing the object.

(As written by GitHub Advisory Database.)

## Affected

- Nerdbank.MessagePack (NuGet): before 1.2.4

## References

- <https://github.com/AArnott/Nerdbank.MessagePack/security/advisories/GHSA-92vj-hp7m-gwcj> (web)
- <https://github.com/AArnott/Nerdbank.MessagePack/commit/c5a239e4f20c38548de44c4dd2a782efd5e2547c> (web)
- <https://github.com/AArnott/Nerdbank.MessagePack> (package)

## Sources

- GitHub Advisory Database: [GHSA-92vj-hp7m-gwcj](https://github.com/advisories/GHSA-92vj-hp7m-gwcj), CC-BY-4.0, modified 2026-05-29

---

Page: https://cve.day/GHSA-92vj-hp7m-gwcj · Whole record: https://cve.day/GHSA-92vj-hp7m-gwcj.json · Rebuilt by cve.day 2026-11-25T22:56:29.594Z
