A senior official sent an email about its confidential project on the issue to an editor at the Guardian newspaper.
A spokesman for the bank described the error as "unfortunate".
Prime Minister David Cameron has promised an in/out referendum on the UK's EU membership by the end of 2017.