United Airlines has said it is changing the keypad codes used to open cockpit doors after the previous codes were accidentally posted on a public website.
United sent a memo to pilots over the weekend telling them to use alternative security measures, an airline spokeswoman said.
The breach in security measures was not the result of hacking and did not cause any flights to be delayed or cancelled, the airline said.
"We are working to change the codes on all of our aircraft," added the spokeswoman, Maddie King.
In a statement, the Chicago-based airline said it uses "a number of measures" in addition to the access codes to keep cockpits secure, and it is working to fix the situation as soon as possible.
Ms King said backup procedures had been put in place but she declined to give details, citing security concerns.
United changes the access codes periodically but scrambled over the weekend after it learned about the information becoming public.
Rusty Aimer, a retired United pilot who is now an aviation consultant, said changing the codes "should not create a big security concern".
He added that he could not remember a breach of the secret codes in the years that he worked for the airline.
Security of cockpits was strengthened after the terror attacks in September 2001, during which hijackers took over control of United and American Airlines planes.
The Air Line Pilots Association has lobbied for legislation in Congress that would require secondary barriers on all US airliners.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here