The possibility that a child inadvertently unlocks a child-resistant vial by triggering the latch with his teeth is avoided by preventing access to the latch from under the cap. This is achieved by covering all sides of the latch with the exception of the front face thereof intended to be used to trigger the latch while the cap is lifted. Improvement of the humidity barrier in such a vial is achieved by closing the vial container with a cap including a recess that defines inner and outer peripheral walls in the cap. The inner and outer walls together define an annular gap that is configured to complementary receive the peripheral flange of the container. Both the edge of the inner wall of the cap and the inner peripheral wall of the container are provided with sealing rings that are axially distanced when the cap closes the vial container.