Bear spray is actually considered a weapon according to the park's regulations. According to Yosemite's official website: “the possession, use, or discharge of pepper spray (including bear spray), pellet guns, and BB guns in Yosemite National Park is prohibited.”