Critical Vulnerability in jsoncons: Bad Parameters to --sanitizer-annotate-contiguous-container

jsoncons Updated 05 Oct 2026

Summary

03/10/2026
HIGH
Yes i
High
Not published

OSV-2026-1361: Bad parameters to --sanitizer-annotate-contiguous-container in jsoncons::cbor::basic_cbor_parser. Affects jsoncons versions >= 29b374009c585c1ab49ad308b1ab3438a73acebf, < 2788b2285a309647d8833de25c182f543529c4d8. Fixed in 2788b2285a309647d8833de25c182f543529c4d8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jsoncons is a C++ library designed for working with JSON and CBOR data formats. It provides a flexible and efficient way to serialize and deserialize data, making it a popular choice for developers needing to handle structured data in their applications. However, a recent vulnerability has been identified that affects the library's basic_cbor_parser functionality, potentially leading to application crashes under certain conditions.

Vulnerability Detail

The vulnerability arises from bad parameters passed to the --sanitizer-annotate-contiguous-container option in the jsoncons::cbor::basic_cbor_parser class. This issue was reported through OSS-Fuzz, indicating that improper handling of input data can lead to crashes, which may disrupt the functionality of applications relying on the jsoncons library. The crash state reveals that the parser fails to manage certain input scenarios, which can result in undefined behavior and potential data loss.

How To Fix

Minimum fixed version

2788b2285a309647d8833de25c182f543529c4d8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement input validation to ensure that parameters passed to the parser are within acceptable limits. This may involve checking the size and type of input data before processing it with the jsoncons parser. Additionally, consider using alternative libraries for JSON and CBOR processing until the update can be applied.

Conclusion

The jsoncons library has a critical vulnerability that can lead to application crashes due to bad parameters in its parsing functionality. It is essential for developers using this library to update to the latest version to ensure their applications remain stable and secure. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.

See every vulnerability recorded for jsoncons →

Share this vulnerability

FAQ

jsoncons is a C++ library for working with JSON and CBOR data formats, providing serialization and deserialization capabilities.

The vulnerability involves bad parameters being passed to a function in the jsoncons library, which can lead to application crashes.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Yes, a patched version of jsoncons is available. Users should update to version 2788b2285a309647d8833de25c182f543529c4d8 or later.

Implement input validation as a temporary workaround to mitigate the risk until you can apply the update.

Related vulnerabilities

Recent vulnerabilities recorded for jsoncons.

How To Fix

Minimum fixed version

2788b2285a309647d8833de25c182f543529c4d8

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback