ujson is vulnerable to Memory Leak
37
Low Risk
ujson's C encoder calls a user supplied default handler to convert objects it cannot serialize directly. When that handler keeps returning values it also cannot serialize, the encoder recurses to its depth limit and raises a TypeError without releasing the last object the handler returned. Each failed ujson.dumps() call leaks that object, so repeated serialization of such inputs grows process memory. The fix drops the outstanding reference on the encoder's error path.
You are affected if you are using a version that falls within the vulnerable range and you serialize objects with a custom default handler.
ujson is vulnerable to Memory Leak in versions 4.2.0 - 5.13.0.
Upgrade the ujson and/or the ultrajson 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.

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.