CVE-2026-52747: Cpp String Consecutive Assign Overwrite

Two consecutive `.assign()` operations on the same object were detected. The second `.assign()` overwrites the string instead of appending to it, which causes the data from the first assignment to be silently discarded. When manipulating buffers or parsing input, this can drop critical tokens such as line breaks, leading to parser differentials and potential

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-52747-cpp-string-consecutive-assign-overwrite --engine opengrep

Description

Two consecutive `.assign()` operations on the same object were detected. The second `.assign()` overwrites the string instead of appending to it, which causes the data from the first assignment to be silently discarded. When manipulating buffers or parsing input, this can drop critical tokens such as line breaks, leading to parser differentials and potential