Accelerated stability studies of pharmaceutical products are commonly conducted at various combinations of temperature and relative humidity (RH). The RH of the sample environment can be controlled to set points using humidity-controlled stability chambers or via storage of the sample in a closed container in the presence of a saturated aqueous salt solution. Herein we report an unexpected N-nitrosation reaction that occurs upon storage of carvedilol- or propranolol-excipient blends in a stability chamber in the presence of saturated sodium nitrite (NaNO2) solution to control relative humidity (˜60% RH). In both cases, the major products were identified as the corresponding N-nitroso derivatives of the secondary amine drugs based on mass spectrometry, UV–vis and retention time. These degradation products were not observed upon storage of the samples at the same temperature and humidity but in the presence of saturated potassium iodide (KI) solution (˜60% RH) for humidity control. The levels of the N-nitrosamine derivatives varied with the pH of various NaNO2 batches. The presence of volatile NOx species in the headspace of a container containing saturated NaNO2 solution was confirmed via the Griess assay. The process for formation of the N-nitrosamine derivatives is proposed to involve volatilization of nitric oxide (NO) from aqueous nitrite solution into the headspace of the container followed by diffusion into the solid drug-excipient blend and subsequent reaction of NOx with the secondary amine.