imiquimod and pembrolizumab in treating patients with stage iiib-iv melanoma

Conditions: Metastatic Melanoma; Stage IIIB Cutaneous Melanoma AJCC v7; Stage IIIC Cutaneous Melanoma AJCC v7; Stage IV Cutaneous Melanoma AJCC v6 and v7

Summary: this pilot early phase i trial studies the side effects and how well imiquimod and pembrolizumab work in treating patients with stage iiib-iv melanoma. imiquimod may stimulate the immune system. immunotherapy with monoclonal antibodies, such as pembrolizumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. giving imiquimod and pembrolizumab may work better at treating melanoma.

primary objectives: i. to gain preliminary data of the anti-tumor activity and safety profile of the combination of imiquimod and pembrolizumab in patients with unresectable cutaneous melanoma. correlative research objectives: i. to compare and contrast (in a hypothesis generating manner) the biomarker profiles of patients who have a confirmed complete response (cr) or partial response (pr) by response evaluation criteria in solid tumors (recist) criteria with patients who do not. outline: patients receive pembrolizumab intravenously (iv) on day 1 and apply imiquimod cutaneously on days 1-5 (monday - friday). cycles repeat every 21 days for up to 2 years (approximately 35 courses) in the absence of disease progression or unacceptable toxicity. patients undergo biopsy at baseline, 6 weeks, and 12 weeks and computed tomography (ct), positron emission tomography (pet)/ct, or magnetic resonance imaging (mri) throughout the trial. after completion of study treatment, patients are followed up every 12 weeks for 1 year and then every 6 months for up to 3 years after registration.

Eligibility criteria:
inclusion criteria: * histological confirmation of stage iiib, iiic, ivm1a, ivm1b, or ivm1c that is not suitable for surgical resection * patients must not have received prior pembrolizumab or other anti-pd1/pdl1 therapies for their metastatic disease * at least one cutaneous lesion that is amenable to treatment with topical imiquimod * measurable disease by recist * eastern cooperative oncology group (ecog) performance status (ps) of 0 or 1 * absolute neutrophil count (anc) \>= 1500/mm\^3 * platelet count \>= 100,000/mm\^3 * hemoglobin \> 9.0 g/dl or \>= 5.6 mmol/l without transfusion or (epo) erythropoietin dependency (within 7 days of assessment) * serum total bilirubin =\ 1.5 uln * aspartate transaminase (ast) =\< 2.5 x uln or =\< 5 x uln for subjects with liver metastases * albumin \>= 2.5mg/dl * international normalized ratio (inr) or prothrombin time (pt) =\< 1.5 x uln unless subject is receiving anticoagulant therapy as long as pt or partial thromboplastin time (ptt) is within therapeutic range of intended use of anticoagulants * activated partial thromboplastin time (aptt) =\< 1.5 uln unless subject is receiving anticoagulant therapy as long as pt or ptt is within therapeutic range of intended use of anticoagulants * creatinine =\< 1.5 x upper limit of normal (uln) * note: measured or calculated (per institutional standard) creatinine clearance is acceptable \>= 60 ml/min for subject with creatinine levels \> 1.5 x institutional uln * negative urine or serum pregnancy test done =\< 72 hours prior to first treatment, for women of childbearing potential only * if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required * provide informed written consent * willing to return to enrolling institution for follow-up * willing to provide tissue from a newly obtained core or excisional biopsy of a tumor lesion in appropriate low risk cutaneous lesions * note: if the tissue biopsy is deemed to be of increased risk for the patient, the biopsy should not be performed and is optional * note: newly-obtained is defined as a specimen obtained up to 42 days prior to registration where no anti-cancer therapy after the specimen was obtained and registration exclusion criteria: * any of the following: * pregnant women * nursing women * men or women of childbearing potential who are unwilling to employ adequate contraception * note: female subjects of childbearing potential should be willing to use 2 methods of birth control or be surgically sterile, or abstain from heterosexual activity for the course of the study through 120 days after the last dose of study medication; subjects of childbearing potential are those who have not been surgically sterilized or have not been free from menses for \> 1 year; male subjects should agree to use an adequate method of contraception starting with the first dose of study therapy through 120 days after the last dose of study therapy; abstain from heterosexual activity is also acceptable method of contraception for males * co-morbid systemic illnesses or other severe concurrent disease which, in the judgment of the investigator, would make the patient inappropriate for entry into this study or interfere significantly with the proper assessment of safety and toxicity of the prescribed regimens * known history of human immunodeficiency virus (hiv) (hiv 1/2 antibodies) * uncontrolled intercurrent illness including, but not limited to, ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * receiving any other investigational agent which would be considered as a treatment for the primary neoplasm or used an investigational device =\< 4 weeks from registration * history of myocardial infarction =\< 6 months, or congestive heart failure requiring use of ongoing maintenance therapy for life-threatening ventricular arrhythmias * known history of active tb (bacillus tuberculosis) * hypersensitivity to pembrolizumab or any of its excipients * prior anti-cancer monoclonal antibody (mab) =\< 4 weeks prior to registration or who has not recovered (i.e., =\< grade 1 or at baseline) from adverse events due to agents administered more than 4 weeks prior to registration * prior chemotherapy, targeted small molecule therapy, or radiation therapy =\< 2 weeks prior to registration or who has not recovered (i.e., =\< grade 1 or at baseline) from adverse events due to a previously administered agent * note: subjects with =\< grade 2 neuropathy are an exception to this criterion and may qualify for the study * note: if subject received major surgery, they must have recovered adequately from the toxicity and/or complications from the intervention prior to starting therapy * known secondary malignancy that has progressed within the last 3 years or requires active treatment; exceptions include basal cell carcinoma of the skin or squamous cell carcinoma of the skin that has undergone potentially curative therapy or in situ cervical cancer * known central nervous system (cns) metastases and/or carcinomatous meningitis * active autoimmune disease that has required systemic treatment in the past 2 years (i.e. with use of disease modifying agents, corticosteroids or immunosuppressive drugs); replacement therapy (eg., thyroxine, insulin, or physiologic corticosteroid replacement therapy for adrenal or pituitary insufficiency, etc.) is not considered a form of systemic treatment * history of (non-infectious) pneumonitis that required steroids or current pneumonitis * active infection requiring systemic therapy * history or current evidence of any condition, therapy, or laboratory abnormality that might confound the results of the trial, interfere with the subject?s participation for the full duration of the trial, or is not in the best interest of the subject to participate, in the opinion of the treating investigator * known psychiatric or substance abuse disorders that would interfere with cooperation with the requirements of the trial * received prior therapy with an anti-pd-1, anti-pd-l1, or anti-pd-l2 agent * known active hepatitis b (e.g., hepatitis b surface antigen \[hbsag\] reactive) or hepatitis c (e.g., hepatitis c virus \[hcv\] ribonucleic acid \[rna\] \[qualitative\] is detected) * received a live vaccine =\< 30 days prior to registration * note: seasonal influenza vaccines for injection are generally inactivated flu vaccines and are allowed; however intranasal influenza vaccines (e.g., flu-mist) are live attenuated vaccines, and are not allowed