testing the addition of an experimental medication mk-3475 (pembrolizumab) to usual anti-retroviral medications in patients with hiv and cancer

Conditions: AIDS-Related Non-Hodgkin Lymphoma; Clinical Stage III Cutaneous Melanoma AJCC v8; Clinical Stage IV Cutaneous Melanoma AJCC v8; Hepatocellular Carcinoma; HIV Infection; Kaposi Sarcoma; Locally Advanced Lung Non-Small Cell Carcinoma; Locally Advanced Malignant Solid Neoplasm; Metastatic Lung Non-Small Cell Carcinoma; Metastatic Malignant Solid Neoplasm; Metastatic Melanoma; Non-Hodgkin Lymphoma; Recurrent Classic Hodgkin Lymphoma; Recurrent Malignant Neoplasm; Refractory Classic Hodgkin Lymphoma; Refractory Malignant Neoplasm; Stage III Lung Cancer AJCC v8; Stage IV Lung Cancer AJCC v8; Unresectable Melanoma

Summary: this phase i trial studies the side effects of pembrolizumab in treating patients with human immunodeficiency virus (hiv) and malignant neoplasms that have come back (relapsed), do not respond to treatment (refractory), or have distributed over a large area in the body (disseminated). 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.

primary objectives: i. to assess the safety and tolerability of mk-3475 (pembrolizumab) in hiv-infected patients on effective antiretroviral therapy and with relapsed/refractory or disseminated acquired immune deficiency syndrome (aids)-defining or non-aids defining malignancy. ii. to assess the safety and feasibility of mk-3475 (pembrolizumab) administration as first systemic therapy for hiv associated kaposi sarcoma in patients on effective antiretroviral therapy. secondary objectives: i. to obtain preliminary insights into clinical benefit (e.g., tumor shrinkage or stabilization \>= 24 weeks) across a variety of tumors in patients infected with hiv and on effective antiretroviral therapy. ii. to evaluate the response rate in kaposi sarcoma impacting physical and/or psychological wellbeing and not amenable to local therapy. exploratory objectives: i. to assess the correlation of pre-therapy tumor pd-l1 expression and t-cell infiltration on clinical benefit. ii. to assess the effect of mk-3475 (pembrolizumab) on circulating hiv and the hiv viral reservoir in patients on effective combination anti-retroviral therapy (cart), as measured by plasma hiv single copy ribonucleic acid (rna), cd4+ t-cell associated hiv unspliced rna, cd4+ t-cell associated integrated hiv deoxyribonucleic acid (dna) provirus, ratio of hiv unspliced rna/dna, "tat/rev induced limiting dilution assay" (tilda), and phylogenetic analysis of hiv-1 molecular evolution. iii. to evaluate the effect of mk-3475 (pembrolizumab) on host gene expression in circulating blood cells. iv. to evaluate the effect of mk-3475 (pembrolizumab) on circulating hiv-specific cd8+ t-cell cytotoxicity against autologous hiv infected cd4+ t-cells in patients on effective antiretroviral therapy. v. to evaluate the effect of mk-3475 (pembrolizumab) on circulating lymphocyte and monocyte numbers and phenotypes. vi. to assess biopsied tumors from participants that progress by immunohistochemistry arrays and gene expression analysis to evaluate potential reasons for the lack of response to mk-3475 (pembrolizumab) or progression such as a lack of t cells within or around tumor. vii. to evaluate the effect of pembrolizumab on human herpesvirus 8 (kshv) viral load in the blood, kshv seroreactivity and kshv specific cd8+ t-cell activity. outline: patients receive pembrolizumab intravenously (iv) over 30 minutes on day 1. patients continue receiving their recommended combination antiretroviral therapy orally (po) once daily (qd). cycles repeat every 21 days for up to 2 years or 35 doses in the absence of disease progression or unacceptable toxicity. patients also undergo computed tomography (ct) or positron emission tomography (pet)/ct and blood sample collection throughout the trial. patients may also undergo biopsies during screening and on study. after completion of study treatment, patients are followed up 30 days and then every 12 weeks up to 1 year.

Eligibility criteria:
inclusion criteria: * histologically or cytologically proven metastatic or locally advanced tumors for which no standard therapy exists, or where standard therapy has failed, or in patients otherwise ineligible for standard therapy, or for an indication that anti-pd-1 therapy has been shown to be effective in studies in hiv-uninfected participants; disease-specific criteria will be applied for certain common cancers and cancers strongly associated with hiv; however, enrollment will not be confined to these tumors * non-small cell lung cancer (nsclc) * metastatic or locally advanced disease that progressed after at least one prior therapy * note: patients that have actionable molecular targets (e.g., epidermal growth factor receptor \[egfr\], anaplastic lymphoma kinase \[alk\], c-ros oncogene 1\[ros1\] mutations) must have received (when indicated) prior appropriate targeted therapy using food and drug administration (fda)-approved agents * aids-related non-hodgkin lymphoma and other non-hodgkin lymphoma * failed standard first-line therapy; and * failed autologous stem cell transplant if indicated for histology (i.e diffuse large b-cell lymphoma) or autologous stem cell transplant is not feasible * classical hodgkin lymphoma * relapsed or refractory de novo classical hodgkin lymphoma having failed standard first-line therapy; and * may have failed to achieve a response or progressed after treatment with brentuximab vedotin or may be brentuximab vedotin naive but is ineligible or unable to receive brentuximab vedotin; and * may have failed to achieve a response to, progressed after, or is ineligible for autologous stem cell transplant (auto-sct) * hepatocellular carcinoma (hcc) * not eligible for curative attempt resection or liver transplant * kaposi sarcoma impacting physical and/or psychological wellbeing and not amenable to local therapy. patients who have received prior therapy and treatment naive patients are both potentially eligible to participate. * on antiretrovival therapy (art) with suppressed hiv viral load for \> 3 months (note: an extended washout period is needed to avoid treatment during the period of risk for the highly toxic and often fatal "immune reconstitution inflammatory syndrome (iris)" * no kshv-associated multicentric castleman disease in past 5 years * no symptomatic pulmonary kapsoi sarcoma (ks) or chest x-rays positive for un-evaluated abnormalities * disease evaluable by aids clinical trial group (actg) ks response criteria * cd4+ t-cell count \>= 50 cells/ul * for ks patients, the following laboratory values supersede values below: * platelets \> lower limit of normal * hemoglobin \> 10 g/dl * melanoma * unresectable or metastatic disease progression following a braf inhibitor if braf v600 positive * note: prior therapy with ipilimumab not required * available pretreatment biopsy, either fresh (optimal) or archival (acceptable) * resolution of any adverse events (aes) from prior treatments must be resolved to baseline or grade =\< 1 at enrollment (with the exception of alopecia), neuropathy, and ototoxicity (i.e., aes that are not expected to improve within the washout period) * on an effective combination cart regimen, generally a 3-drug regimen based on department of health and human services (dhhs) treatment guidelines * patients must be on cart \>= 4 weeks; and * evidence of viral suppression defined as hiv viral load \< 200 copies/ml; and * no symptomatic aes \> grade 1 by common terminology criteria for adverse events (ctcae) criteria probably or definitely attributed to cart; and * no laboratory aes noted on protocol defined screening laboratories \> grade 1 by ctcae criteria probably or definitely attributed to cart, with exceptions noted below * note: if cart is modified during the screening period, patients must be on an effective new regimen for \>= 2 weeks and otherwise meet eligibility criteria * most patients have viral loads that are suppressible to \< 50 copies/ml, but about 25% of patients will occasionally have blips up to 400-500 copies/ml, which do not appear to correlate with lack of viral suppression in most studies; thus, an hiv viral load of =\< 400 copies/ml for an occasional "blip" will be allowed, if there is documentation of an hiv viral load \< 200 on the same regimen and no significant treatment interruption * cd4+ t-cell count \>= 50 cells/ul * patients must have marrow function and organ function as defined below * note: to remain on treatment, any abnormal lab values allowed by the pi must remain stable or improve during treatment; similar off treatment rules will be applied to all patients, except the following: the grade of any abnormal laboratory (lab) value allowed by the protocol principal investigator (pi) at enrollment will be considered the patient's baseline for potentially resuming therapy after modification/holding of therapy when off treatment criteria are applied * leukocytes no lower limit * absolute neutrophil count \> 500/mcl * platelets \> 50,000/mcl * hemoglobin \> 9 g/dl * total bilirubin \< 1.5 x upper limit of normal (uln); or \< 3 x institutional uln for gilbert's syndrome or hiv protease inhibitors; or \< 5 x uln and direct bilirubin \< 0.7 mg/dl for patients on atazanavir containing hiv regimen * aspartate aminotransferase (ast) (serum glutamic oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt) (serum glutamate pyruvate transaminase \[sgpt\]) \< 2.5 x institutional uln * creatine kinase \< 5 x institutional uln * serum creatinine \ = 30 ml/min for subject with creatinine levels \> 2.5 x institutional uln * creatinine clearance should be calculated per institutional standard * thyroid stimulating hormone (tsh) within institutional limits (ie: normal); if tsh is greater or less than institutional limits patients may participate if their t4 is within normal limits (wnl); patients may be on a stable dose of replacement thyroid medication; dose adjustments are allowed if needed * eastern cooperative oncology group (ecog) performance score of 0 to 1 * at least 2 weeks from end of chemotherapy with resolution of neutropenia to above level * at least 2 weeks from end of radiation therapy * at least 4 weeks from end of monoclonal antibody therapy * at least 2 weeks from end of targeted therapy * female patients of childbearing potential must have a negative urine or serum pregnancy within 72 hours before receiving the first dose of study medication; if the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required * note: the effects of mk-3475 on the developing human fetus are unknown; for this reason and because anti-pd-1 agents may be teratogenic, women of child-bearing potential must agree to use 2 methods of birth control, or be surgically sterile, or abstain from heterosexual activity beginning with the screening visit and for the duration of study participation, through 120 days beyond last dose of mk-3475 administration; patients of childbearing potential are those who have not been surgically sterilized or have not been free from menses for \> 1 year * should a woman become pregnant or suspect she is pregnant while she or her partner is participating in this study, she should inform her treating physician immediately * men treated or enrolled on this protocol must agree to use 2 adequate methods of contraception starting with the screening visit, for the duration of study participation, and through 120 days after the last dose of mk-3475 administration * no prior treatment with anti-pd-1 or anti-pd-l1 * measurable disease by response evaluation criteria in solid tumors (recist) version (v) 1.1 or other tumor-specific criteria or disease assessable by physical exam or other methods if not measurable by recist * baseline tumor tissue, either fresh (preferred) or from paraffin block/unstained slides if contemporary biopsy is unsafe or not otherwise obtainable from the primary tumor site or metastatic site to be available for use on correlative studies * age \>= 18 years * because no dosing or adverse event data are currently available on the use of mk-3475 (pembrolizumab) in combination with cart in patients \< 18 years of age, children are excluded from this study, but will be eligible for future pediatric trials * ability to understand and willingness to sign a written informed consent document exclusion criteria: * active systemic immunosuppressive therapy * systemic steroid therapy or steroid therapy that cannot be discontinued with more than 7 consecutive days of steroids within the prior 2 weeks * note: the use of prednisone or equivalent \< 0.125 mg/kg/day (absolute maximum of 15 mg/day) as replacement therapy is permitted; inhaled or topical corticosteroids are permitted * current or history of systemic autoimmune disease requiring systemic therapy * note: the following will not be exclusionary: * the presence of laboratory evidence of autoimmune disease (e.g., positive antinuclear antibody \[ana\] titer or lupus anticoagulant) without associated symptoms * clinical evidence of vitiligo or other forms of depigmenting illness * mild autoimmunity not impacting the function of major organs (e.g., limited psoriasis) * grade 3 or 4 immune related toxicity associated with prior ipilimumab therapy that has not resolved to grade 0 or 1 * cardiovascular disease that meets one of the following: congestive heart failure (new york heart association class iii or iv), active angina pectoris, or recent myocardial infarction (within the last 6 months) * active tuberculosis (tb) or atypical mycobacterial infection: * patients who are undergoing systemic antibiotics for active mycobacterial infection * patients with tb immune reconstitution syndrome (iris) requiring corticosteroids * note: patients who are receiving treatment for latent tuberculosis (isonicotinylhydrazide \[inh\] or alternative) may be eligible after discussion with the protocol p.i. * cirrhosis with child-pugh score of b or c * uncontrolled hepatitis b virus (hbv) infection, defined as acute liver failure or protracted, severe course, as indicated by total bilirubin \> 3 mg/dl (or direct bilirubin \> 1.5 mg/dl), international normalized ratio \> 1.5, encephalopathy, or ascites * note: the following will not be exclusionary: * a positive hepatitis b serology indicative of previous immunization (i.e., hepatitis b surface antibody \[hbsab\] positive and hepatitis b core antibody \[hbcab\] negative), or a fully resolved acute hbv infection * patients with chronic hbv infection suppressed by appropriate antiretroviral therapy with activity against hbv, as outlined in dhhs guidelines * uncontrolled hepatitis c virus (hcv) infection, defined as plasma hcv rna detectable by pcr * note: the following will not be exclusionary: * positive hcv serology but no detectable hcv rna, indicative of spontaneously cleared hcv infection * patients who have been successfully treated for hcv as long as therapy for hcv has been completed * patients who are receiving any other investigational agents for cancer * extensive active brain disease including symptomatic brain metastases or the presence of leptomeningeal disease, and all patients with infratentorial tumors * note: patients with brain metastasis after definitive therapy with surgery or stereotactic radiation and stable off steroids for \> 4 weeks are eligible as are patients with asymptomatic brain metastasis as long as less than 1 cm and thus deemed as not requiring therapy by the primary physician and the lesions(s) are not infratentorial * pregnancy or nursing or unwilling to take adequate birth control during therapy * prior organ allograft or allogeneic transplantation, if the transplanted tissue is still in place * uncontrolled intercurrent illness including, but not limited to, ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia * medical or psychiatric illness or social situations that would, in the opinion of the investigator, preclude participation in the study or the ability of patients to provide informed consent for themselves * clinically significant lung disease including known history or evidence of interstitial lung disease or chronic obstructive pulmonary disease (copd) that requires oxygen therapy * active non-infectious pneumonitis \>= grade 2 or history of grade 3 non-infectious pneumonitis requiring steroids within the past 12 months; or any history of grade 4 non-infectious pneumonitis * grade 3-4 ascites or pleural effusion * note: the following will not be exclusionary: a participant who is clinically stable following treatment for ascites or pleural effusion (including therapeutic thoracentesis or paracentesis) * receipt of live vaccines within 30 days before the first dose of trial treatment and while participating in the trial; examples of live vaccines include, but are not limited to, the following: measles, mumps, rubella, chicken pox, yellow fever, seasonal flu, h1n1 flu, rabies, bacillus calmette-guerin (bcg), and typhoid vaccine * history of allergic reactions attributed to compounds of similar chemical or biologic composition to mk-3475 (pembrolizumab)