Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114114 Overview
CVE-2026-114114 is an input validation flaw in the Vyper smart contract compiler. The compiler mixes character-based line offsets with Python's UTF-8 byte col_offset values inside vyper/ast/parse.py. Multi-byte characters shift the source slices used to reconstruct later numeric literals. An attacker who contributes source code containing non-ASCII identifiers that NFKC-normalize to ASCII, or an invisible byte-order mark, can silently substitute addresses, integers, or other constants in the compiled bytecode. The flaw is tracked under CWE-176: Improper Handling of Unicode Encoding.
Critical Impact
Malicious contributors can alter compiled contract constants, including Ethereum addresses, without changes visible in human review of the source code.
Affected Products
- Vyper 0.1.0b1 through 0.1.0b11
- Vyper 0.1.0b14
- Vyper 0.4.1 through 0.5.0b1
Discovery Timeline
- 2026-10-21 - CVE-2026-114114 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114114
Vulnerability Analysis
Vyper is a Pythonic smart contract language that compiles to Ethereum Virtual Machine (EVM) bytecode. The compiler uses Python's ast module to parse source code, then performs its own slicing of the raw source string to recover literal values. Python's AST reports col_offset values in UTF-8 bytes, while Vyper's slicing logic treats these offsets as character positions. When a line contains multi-byte Unicode characters, the two coordinate systems diverge. Subsequent literal reconstruction reads from the wrong source positions, producing a bytecode constant that does not match the token a reviewer sees in the file.
The practical consequence is integrity loss in compiled artifacts. A pull request that visibly declares one Ethereum address can produce a contract that executes against another address under attacker control.
Root Cause
The root cause lives in vyper/ast/parse.py, where source slicing combines character-indexed line positions with byte-indexed column positions returned by ast.parse. The mismatch is only triggered when the preceding content on a line contains multi-byte UTF-8 sequences, such as NFKC-normalizable Unicode identifiers or a leading byte-order mark (BOM, U+FEFF).
Attack Vector
Exploitation requires an attacker to influence source code reaching the compiler, typically through a pull request, a shared library, or a copied snippet. The attacker introduces a non-ASCII identifier that NFKC-normalizes to a legitimate-looking ASCII name, or inserts an invisible BOM. Human reviewers see unchanged code. When Vyper compiles the file, the byte-vs-character offset drift shifts literal extraction, substituting a different numeric constant or address into the deployed contract. No code execution against the compiler host is required; the compromise sits inside the resulting EVM bytecode.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-114114
Indicators of Compromise
- Source files containing non-ASCII identifiers or hidden characters such as U+FEFF (BOM), zero-width joiners, or homoglyph characters in Vyper (.vy) contracts.
- Mismatches between Ethereum addresses or numeric literals declared in source and the equivalent constants present in compiled bytecode.
- Git diffs where visible identifiers are unchanged but file byte lengths differ unexpectedly.
Detection Strategies
- Run a pre-compile lint that rejects any .vy file containing bytes outside the printable ASCII range unless explicitly allowlisted.
- Compare the decompiled or disassembled constants in produced EVM bytecode against the literals present in the original Vyper source.
- Enforce code review tooling that renders Unicode escapes and BOM markers explicitly rather than hiding them.
Monitoring Recommendations
- Audit CI/CD pipelines that invoke vyper to log the exact compiler version and surface warnings on non-ASCII content.
- Track upstream advisories at the Vyper GHSA-r3c7-7xwm-6vfw advisory and the VulnCheck Vyper advisory.
- Alert on commits to smart contract repositories that introduce characters outside the ASCII range in identifier or literal positions.
How to Mitigate CVE-2026-114114
Immediate Actions Required
- Upgrade Vyper to a fixed release above the affected ranges and recompile all production contracts.
- Reject or quarantine .vy source files containing non-ASCII identifiers, zero-width characters, or BOM bytes.
- Re-review any contract compiled with an affected Vyper version by comparing on-chain constants to repository source.
Patch Information
Fix details and version guidance are published in the Vyper GHSA-r3c7-7xwm-6vfw advisory. Pin the Vyper compiler to a patched release in build manifests and lockfiles, and rebuild deployment artifacts from clean sources.
Workarounds
- Enforce an ASCII-only policy for Vyper source files using pre-commit hooks or CI linters.
- Strip leading byte-order marks from all .vy files before invoking the compiler.
- Require two-reviewer approval for any contract contribution introducing new identifiers or constants, with explicit visual inspection of raw bytes.
# Reject Vyper source containing non-ASCII bytes or BOM before compilation
find . -name '*.vy' -print0 | while IFS= read -r -d '' f; do
if LC_ALL=C grep -qP '[^\\x00-\\x7F]' "$f"; then
echo "Non-ASCII bytes detected in $f - blocking build"
exit 1
fi
done
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

