The change in a Lagrangian with no explicit time dependence $L(\mathbf{q},\mathbf{\dot q})$ can be written using the chain rule:
$$δL = \frac{\partial L}{\partial \mathbf{q}}\cdot δ\mathbf{q} + \frac{\partial L}{\partial \mathbf{\dot q}}\cdot δ\mathbf{\dot q} \ \ \ \ \ \ \ \ (\mathbf{*})$$
Where a derivative with respect to a vector $\mathbf{q}$ denotes a vector with components $\frac{\partial L}{\partial q_1}$, $\frac{\partial L}{\partial q_2}$, $\frac{\partial L}{\partial q_3}$, etc.
Consider the Lagrangian: $$L=\dot q_1^2 + q_1^2(\dot q_2^2 + \dot q_3^2) -q_2^2-q_3^2$$
and the transformation
$q_1 \rightarrow q_1$,
$q_2 \rightarrow q_2 + q_3 δλ$,
$q_3 \rightarrow q_3 - q_2 δλ$,
(in other terms, $δq_1 = 0$, $δq_2 = q_3δλ$, $δq_3 = -q_2δλ$
and also $δ\dot q_1 = 0$, $δ\dot q_2 = \dot q_3δλ$, $δ\dot q_3 = -\dot q_2δλ$)
Under this transformation the lagrangian is unchanged according to $(\mathbf{*})$
$$δL = q_1^2(2\dot q_2 \dot q_3 δλ - 2\dot q_3 \dot q_2 δλ) - (2q_2q_3δλ-2q_3q_2δλ) = q_1^2(0)+(0) = 0 $$
However direct substitution of the transformation into the Lagrangian yields:
$$L'=\dot q_1^2 + q_1^2((\dot q_2 + \dot q_3 δλ)^2 + (\dot q_3 - \dot q_2 δλ)^2)-(q_2+q_3δλ)^2 - (q_3-q_2δλ)^2$$ $$=\dot q_1^2 + q_1^2(\dot q_2^2 + \dot q_3^2 + \dot q_3^2δλ^2 + \dot q_2^2 δλ^2)-q_2^2-q_3^2 -q_3^2δλ^2-q_2^2δλ^2$$
And so the terms in $δλ^2$ are still lingering, and $L' \neq L$. What's gone wrong?