The question presented in this case is whether an attorney is liable to a nonclient for professional malpractice. Because we recognize that liability may attach in certain limited circumstances and because we last examined this issue over a decade ago,
see Prescott v. Coppage,
I
A majority of American courts evidently continue to adhere to the view expressed in a 105-year-old Supreme Court decision holding that absent fraud, collusion, or privity of contract, an attorney is not liable to a third party for professional malpractice.
2
National Savings Bank v.
*122
Ward,
*123
Despite
National Savings Bank
and its progeny, the rule of strict contractual privity has been relaxed in modern jurisprudence. Beginning with an 1852 decision by the Court of Appeals of New York, American courts expressed a willingness to depart from the strict contractual privity rule.
See Thomas v. Winchester,
Consistent with the erosion of the strict privity requirement in the above areas, a growing number of jurisdictions have made inroads into this requirement in attorney malpractice cases by employing one of two basic conceptual models: (1) the balancing of factors theory, or (2) the third party beneficiary theory. 4
*124
The Supreme Court of California was the first court to depart from the strict contractual privity rule of
National Savings Bank.
The California court formulated the balancing of factors theory in
Biakanja v. Irving,
The second conceptual model used in malpractice cases involving attorney liability to third parties is the third party beneficiary contract theory. In general terms, a third party beneficiary contract arises when two parties enter into an agreement with the intent to confer a direct benefit on a third party, allowing the third party to sue on the contract despite the lack of privity. Several jurisdictions, including Illinois and Pennsylvania, have adopted this particular approach.
See, e.g., Ogle v. Fuiten,
It is evident from the brief review above that the present state of the law governing attorney liability to nonclients is far from settled. Although some commentators suggest that the weight of authority supports the strict privity rule, most nonetheless agree that the trend is against this requirement.
See, e.g.,
D. Meiselman,
Attorney Malpractice: Law and Procedure
§ 6:6, at 105 (1980);
Lawyers ’ Manual on Professional Conduct
(ABA/BNA) 71:1101 (1984); An-not.,
*126 There is an abundance of authority for the proposition that only the client can sue the attorney for a negligent act or omission, and its corollary, that the attorney owes no duty to a person other than his client. Relying upon annotations and commentators, some courts have stated that a strict privity requirement is a majority rule. Such comments may reflect the holdings and dictum of the majority of the decisions under particular facts, but do not accurately characterize the state of the law in the United States.
The vast majority of such decisions concern factual situations where no jurisdiction would permit the plaintiff to bring a suit for negligence. Many reported decisions concern claims of opponents in litigation, yet no jurisdiction has found a duty by an attorney to an adverse party. Similar contentions by a client’s divorced spouse or children have also been uniformly rejected.
Other limitations include the rejection of a duty to a buyer by a seller’s attorney or to another attorney who referred the case.
One way to measure the strength of the privity rule is to examine those decisions concerning claims by a would-be beneficiary of a will. With the sole exception of New York, jurisdictions have permitted a cause of action. On the other hand, errors relating to certification of title to real property allegedly done for the benefit of the plaintiff have generally been rejected. Another indication of the strength of the privity rule is the trend of the more recent decisions. Suffice it to say that the vast majority of modern decisions favored expanding privity beyond the confines of the attorney-client relationship.
R. Mallen & V. Levit, Legal Malpractice § 79, at 152-54 (2d ed. 1981) (footnotes omitted).
II
A.
The evolution of the law in Maryland governing attorney liability to third parties has essentially paralleled the nation
*127
al development. For instance, in 1940 this Court adopted the traditional privity rule that an attorney owes a duty to his client or employer, and therefore only that client or employer can recover against him for that breach.
Wlodarek v. Thrift,
It seems generally accepted that the liability of the defendants as attorneys to examine and pass upon a title to land is founded in contract and not in tort, and, therefore, does not, as a general rule, extend beyond the person by whom they were so employed. So, when the party with whom the contract is made is the purchaser, and he causes the title to the land, after paying the purchase money, to be conveyed by the vendor to his nominee, the subsequent loss and injury sustained by such nominee and his successors in the title, by reason of any defect in or absence of title, may not be recovered of the attorneys by such third parties as damages.
Id.
at 468,
Shortly after the
Wlodarek
decision, this Court again determined that the strict privity requirement barred a cause of action by a nonclient against an attorney.
Kendall v. Rogers,
On appeal, the
Kendall
Court framed the issue as whether the attorney was employed to represent the plaintiffs as their attorney in the matter.
Id.
at 612,
“The attorney is liable for his negligence in certifying to a title to his immediate employer only, and not to the latter’s assigns or any third person, between whom and the attorney there is no privity.” Shearman and Red-field on Negligence, Revised Edition, 3d Vol., page 1485.
We are of opinion that the facts set out in this declaration are not sufficient in law to establish the relationship of client and attorney between the plaintiffs and defendant in this case.
Kendall v. Rogers, supra,
*129
These cases demonstrate that Maryland followed the strict privity rule without deviation until 1972. Beginning with our 1972 decision in
Prescott v. Coppage, supra,
however, Maryland appellate courts began to explore and determine the contours of the third party beneficiary theory of recovery in the context of attorney liability to nonclients.
See Kirgan v. Parks,
Prescott involved the receiver of a savings and loan association (Medley) who owed certain monies to the receiver of a deposit insurance company (Coppage). Coppage sued the court appointed special counsel for Medley (Prescott), alleging that his erroneous advice had led Medley to pay sums from his receivership estate to the association’s depositors rather than to Coppage, whose claim had priority. In writing for a unanimous court, Judge Menchine (specially assigned) reasoned that all creditors of the savings and loan association were third party beneficiaries of the receivership. Because Prescott was under a duty to aid the receiver in the performance of his duties, the creditors, including Coppage, were third party beneficiaries of Prescott’s performance of his court appointed duties. As a result, Coppage, as third party beneficiary, could sue to recover losses caused by Prescott’s improper performance of those duties.
Six years later, the Court of Special Appeals analyzed Prescott’s third party beneficiary theory in
Clagett v. Dacy, supra.
In that case, the third parties were the high bidders at a foreclosure sale, but because the attorneys failed to conduct the sale properly, the sale was set aside—twice. Eventually, the debtor redeemed the property by discharging his loan, leading the bidders to sue the attorneys. The bidders alleged that the attorneys owed them a duty to use care and diligence and to conduct the sale properly and
*130
carefully. The trial court, however, concluded that the attorneys did not owe a duty to the bidders. In affirming the trial court’s judgment, the
Clagett
court, speaking through Judge Wilner, observed that
Prescott
“seem[s] to suggest a modest relaxation of the strict privity requirement to the extent of allowing a true third party beneficiary to sue an attorney as he could sue any other defaulting or tortious party to a contract made for his benefit.”
Id.
at 27,
In the most recent Maryland appellate decision to raise the third party beneficiary theory in the attorney malpractice context, the Court of Special Appeals remarked that it is “a definite maybe” whether a testamentary beneficiary has standing to sue the attorney who drafted the testator’s will. See Kirgan v. Parks, supra. On the facts presented in that case, however, the court rejected the beneficiary’s cause of action because the asserted testamentary intention was not apparent on the face of the will.
B.
Based on our review of the above cases, we think it clear that Maryland, as a generál rule, adheres to the strict privity rule in attorney malpractice cases. The sole exception that we have recognized to this rule is the third party beneficiary theory. Although this exception is “peculiarly applicable” to contract actions,
Clagett v. Dacy, supra,
The foregoing suggests that the third party beneficiary exception has a rather narrow scope. Properly applied, this exception will not expose the attorney to endless litigation brought by those who might conceivably derive some indirect benefit from the contractual performance of the attorney and his client. Moreover, this exception should have limited application in adversarial proceedings because our Code of Professional Responsibility requires that a lawyer represent his client zealously within the bounds of the law (Canon 7) and that the lawyer ordinarily not represent or act for conflicting interests in a transaction (Canon 5; EC 5-1, 5-14, 5-15, 5-19, 5-22; DR 5-105).
See also Clagett v. Dacy, supra,
With these considerations in mind, we now turn to the facts of this case.
Ill
In August 1977 Robert and Sally Flaherty (the Flahertys) entered into a contract of sale for the purchase of a home in Frederick County for $63,000. To finance their purchase the Flahertys secured a $55,000 mortgage loan from the First Federal Savings and Loan Association of Hagerstown, Maryland (First Federal). After First Federal had approved the loan and after the purchase price of the property as well as the mortgage amount had been established, First Federal retained the law firm of Weinberg, Michel and Sterns (Weinberg) to represent it at settlement of the purchase of the property. The Flahertys did not retain separate counsel, a fact of which Weinberg was aware.
At settlement, Weinberg assured the Flahertys that they were purchasing the property as described in the contract of sale, and that a dwelling and well were located on the property within the described boundary lines. As part of the settlement costs the Flahertys paid $60 for a survey, and in return received a survey prepared by Wilbur Ford, Jr., on December 17, 1976 (Ford survey). This survey indicated that the northernmost corner of the dwelling was twenty-six feet from the nearest boundary lines.
After settlement the Flahertys moved into the home and constructed an above-ground swimming pool to the northeast corner of the dwelling as reflected in the Ford survey and continued to use the well. In 1982, when contemplating further improvements to the property, the Flahertys obtained another survey of their property. This 1982 survey indicated that the well was not on their property, and that the swimming pool, driveway, and a retaining wall that *133 adjoined the Flahertys’ home all encroached upon their neighbor’s property. In July 1982 the Flahertys requested Weinberg to provide them with the surveys Weinberg had in its possession concerning the Flaherty property. Weinberg responded by providing the Flahertys with a survey completed by Fox and Associates, Inc. (Fox survey) in December 1977. The Fox survey, which was ordered by First Federal, was completed approximately four weeks after the settlement date. This particular survey revealed these encroachments and that the northernmost corner of the home was eighteen, not twenty-six, feet from the nearest boundary line.
The Flahertys filed a four count declaration against Weinberg and Ford in the Circuit Court for Frederick County in October 1982. The declaration contained two counts against Weinberg based upon theories of negligence and breach of warranty, with the remaining two counts against Ford predicated upon the same theories of recovery. Weinberg filed a demurrer to this declaration, which the trial court sustained with leave to amend. The Flahertys filed an amended declaration on January 3, 1983, and a second amended declaration on January 25, 1983. In addition to the counts stated above, the second amended declaration included a count for negligent misrepresentation and an assertion that First Federal’s hiring of Weinberg was intended to benefit the Flahertys. Weinberg filed a demurrer to the second amended declaration, which the trial court sustained without leave to amend. The trial court found that Weinberg owed no duty to the Flahertys under the facts as alleged, reasoning that no privity of contract existed between the Flahertys and Weinberg and that the Flahertys were not specifically intended beneficiaries of the contract between Weinberg and First Federal.
Shortly thereafter the Flahertys filed a motion for final judgment under former Md.Rule 605 a (now Md.Rule 2-602) in an attempt to obtain an appealable final judgment as to Weinberg. Because the trial court denied this motion, the Flahertys voluntarily dismissed their suit against Ford so *134 that they could prosecute an immediate appeal against Weinberg. The Flahertys thereupon appealed to the Court of Special Appeals, but we granted certiorari prior to decision by that Court. We reverse.
A.
In bringing a professional malpractice case against Weinberg, the Flahertys assert three causes of action: (1) negligence; (2) breach of warranties; and (3) negligent misrepresentation. Although we have classified an action for attorney malpractice as being in contract, the gravamen is the negligent breach of the contractual duty.
See Mumford v. Staton, Whaley & Price,
In their second amended declaration the Flahertys assert a cause of action based on negligence, a theory of recovery that traditionally arises in the professional malpractice context. As discussed in Section II.A.,
supra,
a prerequisite for maintaining a negligence action against an attorney is that the plaintiff establish an employment relationship between himself and the attorney.
See Kendall v. Rogers, supra.
Although an express employment agreement is not necessary in all cases,
see Central Cab Co. v. Clarke,
*135 The Flahertys also assert a cause of action for breach of express or implied warranties. These warranties, however, arise only as provided by law or as they are established under a contractual relationship. Because the Flahertys have not pointed to any statute that extends a warranty under these circumstances, and because they have not alleged a contractual relationship between Weinberg and themselves, their breach of warranties claim is demurrable.
Lastly, the Flahertys assert a cause of action for negligent misrepresentation, the principal elements of which are the following:
(1) The defendant, owing a duty of care to the plaintiff, negligently asserts a false statement;
(2) The defendant intends that his statement will be acted upon by the plaintiff;
(3) The defendant has knowledge that the plaintiff will probably rely on the statement, which, if erroneous, will cause loss or injury;
(4) The plaintiff, justifiably, takes action in reliance on the statement; and
(5) The plaintiff suffers damage proximately caused by the defendant’s negligence.
Martens Chevrolet v. Seney,
B.
As indicated, this case reaches us on demurrer.
7
In considering the sufficiency of a declaration on demurrer,
*136
we are required to accept as true all well-pleaded material facts in the declaration and exhibits thereto as well as any reasonable inferences that may be drawn therefrom.
Tadjer v. Montgomery County,
[Demurrers] are solely to provide a minimization test for a cause of action either where a question of law may be decisive of litigation or the facts alleged do not constitute a cause of action. The “precise rubric” itself provides that a mere informal statement of a cause of action will suffice and that it shall be “brief and concise and contain only such statements of facts as may be necessary to constitute a cause of action____” Md.Rule 301 b.
General Federal Construction, Inc. v. D.R. Thomas, Inc.,
In view of these pleading principles, the Flahertys argue that their second amended declaration states a cause of action under the third party beneficiary theory which, as we have seen, is a limited exception to the strict privity rule. Based on this argument, the Flahertys contend that the trial court erred in sustaining Weinberg’s demurrer without leave to amend. We agree.
Initially, we note that the Flahertys direct our attention to several factors they contend are determinative of whether they are third party beneficiaries with legally *137 enforceable rights. A number of these factors, however, are inconclusive. For example, the Flahertys elected to go to settlement without retaining separate counsel. This factor, standing alone, does not establish whether First Federal intended to benefit the Flahertys, nor does it establish whether that intent was the primary purpose of the transaction or relationship. Although the Flahertys may have believed that their interests would be adequately protected by Weinberg’s representation of First Federal, the unilateral action of the Flahertys cannot establish the intent of First Federal. Moreover, there are no allegations that First Federal or Weinberg induced the Flahertys to attend settlement without benefit of separately retained counsel. At most, the Flahertys’ decision not to retain separate counsel merely buttresses their assertion that all parties understood that First Federal intended to confer a direct benefit upon the Flahertys.
Other factors are similarly inconclusive of the requisite intent to benefit.
8
The Flahertys allege that First Federal desired to make a loan, that they desired to accept the loan, that First Federal wanted security for its loan (i.e., property with clear title and no encroachments), and that the Flahertys wanted to own property with good title and free of encroachments. In addition, the Flahertys allege that “[a]t the time of the settlement the lending institution’s interests were not diverse to that of the plaintiff[s’].” Although the third party beneficiary exception is ordinarily inapplicable in the adversarial context, this does not suggest that a nonclient is automatically transformed into a
*138
third party beneficiary with legally enforceable rights upon the resolution of the differences between himself and the mortgagee. Furthermore, the interests of the mortgagor and mortgagee differ throughout the mortgage process. One important area of difference is the respective title requirements of the parties. The mortgagee merely wants assurances that title is not impaired to the point where its value will be reduced below the amount of the outstanding indebtedness. By contrast, the mortgagor wants assurances of maximum enjoyment of the property and freedom from post-settlement claims by third parties.
See Page v. Frazier,
In view of these differing interests, it is manifest that conflicts of interests may arise if the attorney represents both the mortgagor and mortgagee. Judge Wilner, writing for the
Clagett
Court, cogently observed that “[attorneys are not quite the free agents as some others are in the world of commerce. There are well-recognized limitations, judicially imposed and enforced, upon how they may conduct themselves, and who they may, and may not, represent in certain situations.”
Clagett v. Dacy, supra,
The Flahertys, however, go on to allege that “[t]he hiring of [Weinberg] was intended to benefit the lender as well as the purchasers in that both had identical *139 interests in the property. The plaintiffs were intended, either expressly or impliedly, to benefit from the defendant attorneys’ undertaking in this matter.” As we see it, by this allegation the Flahertys assert as fact that they were intended to benefit directly from Weinberg’s services as an attorney. Therefore, Weinberg was under a duty to ascertain the correct boundaries of the property and so advise the Flahertys, in which case the Flahertys would have suffered no loss. Although the Flahertys may find it difficult to support their claim that a direct purpose of the relationship between First Federal and Weinberg was to benefit the Flahertys, they have nevertheless alleged this circumstance as a fact and such allegation is enough to survive the demurrer. 9
We therefore hold that the trial court erred in sustaining Weinberg’s demurrer without leave to amend to the third count.
JUDGMENT OF THE CIRCUIT COURT FOR FREDERICK COUNTY REVERSED AND CASE REMANDED TO *140 THAT COURT FOR PROCEEDINGS CONSISTENT WITH THIS OPINION.
APPELLEES TO PAY THE COSTS.
Notes
. Jurisdictions have addressed the issue of attorney liability to third parties with increasing frequency.
See, e.g., Pelham v. Griesheimer,
.
See, e.g., Lilyhorn v. Dier,
. This rule had its doctrinal origins in Winterbottom v. Wright, 10 Messon & Welsby 109, 153 Eng.Rep. 402 (1842), where Chief Baron Lord Abinger suggested in dicta that because only parties to a contract could sue on that contract, only those parties could also sue in tort. Some commentators have noted that American courts erroneously interpreted Lord Abinger’s suggestion to mean that no action could exist in tort because of the absence of privity. See Prosser and Keeton on the Law of Torts § 93, at 668 (W. Keeton 5th ed. 1984).
. Other theories, less well accepted, include the assumption of duty theory and the fiduciary or agency theory. Note, Attorneys’ Negligence, supra, 54 N.Y.U.L.Rev. at 138-45; see Note, The Pelham Decision, Attorney Malpractice and Third-Party Nonclient Recovery: The Rise and Fall of Privity, 3 N.Ill.U.L.Rev. 357 (1983). Under the assumption of duty theory, once an attorney gratuitously promises to act for the benefit of another and he actually undertakes to fulfill that promise, the attorney is held to a duty of care in fulfilling that promise. To establish a duty between the attorney and a third party, the third party plaintiff must show that an attorney undertook an action and that the third party’s injuries were a foreseeable result of the negligent performance of that action. This theory, however, has evidently not been adopted by any jurisdiction in the context of *124 attorney malpractice. See Note, Attorneys' Negligence, supra, 57 N.Y.U.L.Rev. at 144-63 (urging adoption of assumption of duty theory).
The fiduciary or agency theory is also offered to support a finding that attorneys owe duties to third parties. This theory, similar to the assumption of duty theory, has gained little acceptance.
See Stewart v. Sbarro,
. The
Lucas
court employed the Biakanja balancing test, but omitted without explanation the moral blame standard. In its place, the court inserted a standard relating to whether the recognition of liability to beneficiaries under a will would impose an undue burden on the legal profession. Subsequent decisions, however, have specified the moral blame standard.
See, e.g., Heyer v. Flaig,
. Interestingly, commentators have suggested that the predominant inquiry under the Lucas balancing approach "has generally resolved to one criterion: were the services intended to benefit the plaintiff.” R. Mallen & V. Levit, supra, § 80, at 157 (footnote omitted). According to these commentators, "[r]egardless of whether the legal theory is based upon express or implied contract, the determinative question is did the attorney and his client intend the plaintiff to be the beneficiary of his services. An incidental benefit does not suffice to impose a duty upon the attorney.” Id. (footnotes omitted).
. By order dated April 6, 1984, we approved and adopted effective July 1, 1984, a revision of the Maryland Rules. This revision resulted in the abolishment of demurrers. See Md.Rule 2-302. Maryland Rule 2-322(b)(2), which replaced former Md.Rules 345 and 371 b, *136 provides that a defense based upon the failure to state a claim upon which relief can be granted may be made by motion to dismiss filed before the answer, if an answer is required.
. Although not alleged in the second amended declaration, we recognize that the Flahertys ultimately paid Weinberg’s fee. This factor is inconclusive of the requisite intent to benefit because the Flahertys paid the fee to First Federal as a condition of the loan. First Federal, aware of the expenses involved in the processing of loan applications, simply required the prospective borrower (here the Flahertys) to pay these expenses. This factor does not, however, make the mortgagee’s attorney the mortgagor’s attorney, just as paying the required document processing fees would not transform a First Federal loan clerk into an employee of the Flahertys.
. We note that Weinberg points to other documents that suggest that First Federal did not intend to confer a direct benefit upon the Flahertys. For instance, in a letter dated September 22, 1977, from First Federal to the Flahertys, the Flahertys were informed that:
[First Federal] will refer this loan to one of our settlement attorneys, Weinberg, Michel and Stern, Frederick, Maryland, who will contact you for representation of us in the processing and closing of the loan for which you will pay an initial loan charge at the time of settlement. All questions concerning the loan and settlement arrangements should be referred to the attorney’s office [emphasis supplied.]
In addition, the Flahertys received a document entitled “Statement of Charges” in which they were advised that Weinberg’s services "were performed on behalf of [First Federal] and not on behalf of the Borrowers[.]” [Emphasis supplied.]. Regardless of the persuasiveness of these documents, we are limited in considering only those well-pleaded material facts in the second amended declaration and exhibits thereto as well as any reasonable inferences that may be drawn therefrom. These documents were produced in response to a Request for Production of Documents and, consequently, were not properly before the lower court in considering the demurrer. Therefore, under the procedural posture of this case, we disregard these documents.
