diff --git a/lib/metasploit_data_models/active_record_models/vuln.rb b/lib/metasploit_data_models/active_record_models/vuln.rb
index <HASH>..<HASH> 100755
--- a/lib/metasploit_data_models/active_record_models/vuln.rb
+++ b/lib/metasploit_data_models/active_record_models/vuln.rb
@@ -11,9 +11,10 @@ module MetasploitDataModels::ActiveRecordModels::Vuln
       after_update :save_refs
 
       scope :search, lambda { |*args|
-        where(["(vulns.name ILIKE ? or vulns.info ILIKE ?)",
-          "%#{args[0]}%", "%#{args[0]}%"
-        ])
+        where(["(vulns.name ILIKE ? or vulns.info ILIKE ? or refs.name ILIKE ?)",
+          "%#{args[0]}%", "%#{args[0]}%", "%#{args[0]}%"
+        ]).
+        joins("LEFT OUTER JOIN vulns_refs ON vulns_refs.vuln_id=vulns.id LEFT OUTER JOIN refs ON refs.id=vulns_refs.ref_id")
       }
 
       private
Add Refs to the Vuns shallow search scope