Hi!
Try this:
let vertexAttribute = geometry.getAttribute('position');
vertexAttribute.setY(2, 5.0);
vertexAttribute.needsUpdate = true;
geometry.computeBoundingSphere(); // add this line
geometry.computeBoundingBox(); // add this line
Some explanations: [Solved] Raycaster missing half a plane - bug?