CWE-1126 Declaration of Variable with Unnecessarily Wide Scope

base

The source code declares a variable in one scope, but the variable is only used within a narrower scope.

01

parent weaknesses

Broader classes this is a kind of.

02

source

Where this definition is published.

scry

Weaknesses like this turn up in real, exploitable exposures. See what is exposed on your perimeter with a free passive scan.

Free scan