Integer Underflow in Lexbor ISO‑2022‑JP Encoder
Lexbor is a web browser engine library. Prior to 2.7.0, the ISO‑2022‑JP encoder in Lexbor fails to reset the temporary size variable between iterations. The statement ctx->buffer_used -= size with a stale size = 3 causes an integer underflow that wraps to SIZE_MAX. Afterwards, memcpy is called with a negative length, leading to an out‑of‑bounds read from the stack and an out‑of‑bounds write to the heap. The source data is partially controllable via the contents of the DOM tree. This vulnerability is fixed in 2.7.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-29078
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:58 UTC · Revision 1
Source evidence
Integer Underflow in Lexbor ISO‑2022‑JP Encoder
core-osv · Original sourcePublished 13 Mar 2026, 17:18 UTC
Lexbor is a web browser engine library. Prior to 2.7.0, the ISO‑2022‑JP encoder in Lexbor fails to reset the temporary size variable between iterations. The statement ctx->buffer_used -= size with a stale size = 3 causes an integer underflow that wraps to SIZE_MAX. Afterwards, memcpy is called with a negative length, leading to an out‑of‑bounds read from the stack and an out‑of‑bounds write to the heap. The source data is partially controllable via the contents of the DOM tree. This vulnerability is fixed in 2.7.0.
osv:CVE-2026-29078
Complete source record
{
"id": "97b21d577c4ec5dedaae1768f139f915d4d39723afa3a9af216487056355b48b",
"url": "https://osv.dev/vulnerability/CVE-2026-29078",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Integer Underflow in Lexbor ISO‑2022‑JP Encoder",
"summary": "Lexbor is a web browser engine library. Prior to 2.7.0, the ISO‑2022‑JP encoder in Lexbor fails to reset the temporary size variable between iterations. The statement ctx->buffer_used -= size with a stale size = 3 causes an integer underflow that wraps to SIZE_MAX. Afterwards, memcpy is called with a negative length, leading to an out‑of‑bounds read from the stack and an out‑of‑bounds write to the heap. The source data is partially controllable via the contents of the DOM tree. This vulnerability is fixed in 2.7.0.",
"evidence": "osv:CVE-2026-29078",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-29078",
"aliases": [
"CVE-2026-29078",
"GHSA-mrwr-xh7f-96v3"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lexbor/lexbor",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "de30a79397f8db1c22bce2fd5a792d84fd065762"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.7.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:lexbor:lexbor:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.7.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.6.0",
"v2.5.0",
"v2.4.0",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v1.0.0",
"v0.4.0",
"0.2.0",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29078.json"
}
}
],
"modified": "2026-10-28T02:30:49.423570926Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29078.json",
"https://github.com/lexbor/lexbor/security/advisories/GHSA-mrwr-xh7f-96v3",
"https://nvd.nist.gov/vuln/detail/CVE-2026-29078"
],
"provider_metadata": {
"cwe_ids": [
"CWE-191",
"CWE-787"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29078.json"
}
},
"related_cves": [
{
"value": "CVE-2026-29078",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517941,
"published_at": "2026-03-13T17:18:47.646+00:00"
}