The invention relates to the technical field of financial terminals, and provides a medium storage device and an automatic teller
machine wherein the medium storage device comprises a medium storage part, a banknote pressing mechanism, a return path, a deposit path and a flexible limiting mechanism, and the medium storage part defines a banknote accommodating space; the flexible limiting mechanism comprises a first flexible limiting
assembly and a second flexible limiting
assembly, and the first flexible limiting
assembly and the second flexible limiting assembly are arranged on the inner walls of the two opposite sides of the banknote containing space in the first direction. The first flexible limiting assembly and the second flexible limiting assembly are used for conducting flexible limiting on the returning medium conveyed from the returning path to the taking-out
storage area. When the space of a taking-out area is too large due to the fact that the position of the banknote pressing mechanism is improper, it is guaranteed that a small number of returned banknotes can still be kept in an upright and tidy posture, and when a user stores a large number of banknotes, obstruction cannot be formed, and the capacity of the storage device cannot be affected.