The original list for this question contained significant errors—including states that border only other U.S. states. Here's the accurate count and list.
With Canada (13): Washington, Idaho, Montana, North Dakota, Minnesota, Michigan, New York, Vermont, New Hampshire, Maine, Ohio*, Pennsylvania*, Alaska
With Mexico (4): California, Arizona, New Mexico, Texas
*Ohio & Pennsylvania border Canada only via Lake Erie (maritime). If counting land-only: 13 states.
The following border only other U.S. states—no international boundary:
Border states have unique legal, economic, and security considerations: CBP jurisdiction, cross-border trade, environmental agreements, Indigenous nation territories, and immigration enforcement. Conflating interstate and international borders obscures these realities.
Always distinguish: international border (sovereign nation) vs. state border (subnational unit). The original question's "17 states" was correct for land borders—but the accompanying list was wildly inaccurate.