Penal Code section 171.7 addresses knowing possession of specified weapons in a legally defined public transit facility. It is not a general rule covering every street near a bus stop or every object a passenger carries. The present charge calls for four separate checks: whether the place meets the facility definition, whether the object is listed, what the person knew and whether a statutory exception applies. The 2026 text includes an unloaded-firearm lock-box exception, but that provision needs careful reading alongside a separate, litigated concealed-carry law. (Penal Code § 171.7.)
Identify the facility and the item
Subdivision (a) defines a public transit facility using its primary transit or passenger-service purpose and access controlled consistently with the transit authority’s security plan. It includes listed public transit vehicles, such as buses, light rail, subways and trains that transport the public for hire. The exact location matters: a vehicle, station, controlled platform and adjacent public sidewalk are not necessarily the same place under this definition. Obtain the citation, station or vehicle information, location map and relevant security-plan facts before assuming the statute covers the site.
The statute says it is unlawful to “knowingly possess” any listed item in that facility. Its list reaches firearms, imitation firearms, BB or paint projectile devices, metal or plastic replica grenades, unauthorized tear-gas weapons, and specified undetectable knives or firearms. The inventory, photographs and testing or classification of an object can matter. A charge naming a “weapon” does not substitute for matching it to an actual paragraph of section 171.7(b). Knowledge and possession must be evaluated from the real evidence, including where the item was found and who had access.
Check a claimed exception precisely
Section 171.7(c) contains several different exceptions. It covers specified officers under stated conditions, a transit-security worker with written authorization from the authority’s security coordinator, and an unloaded firearm stored under an actual transit system’s checked-baggage policy where that system offers checked baggage. A separate paragraph protects possession of a tear-gas weapon when another cited law permits it. A traveler should not infer checked-baggage permission from an airline rule or assume that a verbal statement is the written transit authorization the statute describes.
The 2026 amendment also excepts transportation of “an unloaded firearm locked in a lock box” in compliance with Penal Code section 26230(a)(8). The California Department of Justice’s March 2025 bulletin said the separate section 26230(a)(8) public-transit restriction on concealed-carry license holders remained subject to a preliminary injunction. That report does not erase section 171.7, decide how its cross-reference applies to every case or supply blanket permission to carry on transit. Counsel should check the current court-order status and the precise transport facts before anyone relies on that exception or on a carry license.
What to bring to a charge review
Section 171.7(d) authorizes up to six months in county jail, a fine up to $1,000, or both (§ 171.7(d)). Subdivisions (e) and (f) expressly leave other potentially applicable laws in place while limiting multiple punishment for the same act under different provisions. A transit-property interference or trespass allegation concerns different conduct; an airport sterile-area charge has its own location rule. None should be silently substituted for the actual section on the complaint.
For the airport distinction mentioned here, see the guide to Penal Code 171.5 airport weapons allegations.
Preserve the citation or complaint, item inventory, photos, route and station details, baggage policy, any written security authorization, and the record of how the item was found. Those materials let counsel test the charge against the defined facility, item, knowledge and applicable exception without guessing from a transit label. For a California weapons allegation, see the firm’s criminal defense overview or contact the Law Offices of David S. Chesley. You can also call (800) 755-5174.
