Description
Vyper 0.1.0b1 before 0.1.0b17 and 0.4.1 through 0.5.0b1 builds its source-line table with str.splitlines(), which treats characters like form feed and U+2028 as line breaks the Python parser ignores, so numeric literals are classified and validated from shifted source text. An attacker contributing source code can hide these characters in comments, strings or indentation to silently change address, integer or decimal constants.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
vyperlang vyper
Default version status: unaffected
0.1.0b1 to < 0.1.0b17affected0.1.0b17unaffected
pkg:pypi/vypervyperlang vyper
Default version status: unaffected
0.4.1 to ≤ 0.5.0b1affected
pkg:pypi/vyper